Mithril 依赖不断给本地化电子应用程序带来问题

问题描述

我想本地化电子应用程序 tutanota,以便深入了解它。 该应用程序具有用于自行构建项目的自述文件 (https://github.com/tutao/tutanota/blob/master/doc/BUILDING.md)

在克隆项目并检查最新版本后,我运行:

npm install

为此,我收到以下错误

WARN mithril-node-render@2.3.0 requires a peer of mithril@^1.1.5 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.1 (node_modules\rollup\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.1: wanted {"os":"darwin","arch":"x64"})

然后我尝试运行 node dist prod 它运行了一段时间,但最终是这样的:

Build error: Error: UnkNown chunk: undefined of libs\mithril.js
    at Object.generateBundle (file:///C:/Users/Ask/Git/tutanota/buildSrc/RollupConfig.js:183:13)
    at file:///C:/Users/Ask/Git/tutanota/node_modules/rollup/dist/es/shared/rollup.js:18914:25 {
  code: 'PLUGIN_ERROR',plugin: 'bundle-dependency-check',hook: 'generateBundle'
}

然后我认为 mithril 可能有问题,并尝试按照运行“npm install”的建议运行

npm install mithril@^1.1.5

这使得运行“npm install”的第一个错误消失,但“node dist prod”以完全相同的方式失败。

我可能做错了什么?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)