Skip to content

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.

抛出位置 ​

← 全部错误码

根据 Cell 4.1.0 的源码生成;错误信息与修复提示是命令行输出的原文(英文)。