CELL_MODULE_ERROR
错误信息
- Output file '…' is outside the output directory.
- … failed on …: …
- The toolchain module … failed: …
- Cannot load the toolchain module …: …
- … reads the '…' options, which … already reads.
- … read its options after its factory returned.
- … changed the configuration after its factory returned.
修复方法
- Pass a path relative to the output directory to cell.addOutputFile().
- Fix the … handler of ….
- Fix the factory of …, or turn it off with { source: '…', toolchain: false } in modules.
- Fix the module file; it must load without the project being built.
- Each option field belongs to one module; use another key.
- Call cell.options() synchronously in the factory and keep the result.
- Call cell.updateConfig() in the factory.
抛出位置
- dev-packages/cli/src/cli/build-command.ts:80 (
@celljs/cli) - dev-packages/cli/src/events/event-bus.ts:88 (
@celljs/cli) - dev-packages/cli/src/modules/module-host.ts:174 (
@celljs/cli) - dev-packages/cli/src/modules/module-host.ts:276 (
@celljs/cli) - dev-packages/cli/src/modules/module-host.ts:339 (
@celljs/cli) - dev-packages/cli/src/modules/module-host.ts:370 (
@celljs/cli) - dev-packages/cli/src/modules/module-host.ts:382 (
@celljs/cli)
根据 Cell 4.1.0 的源码生成;错误信息与修复提示是命令行输出的原文(英文)。