微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决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 举报,一经查实,本站将立刻删除。