./node_modules/ngx-window-token/fesm2015/ngx-window-token.mjs 中出现错误。无法从非 EcmaScript 模块导入命名导出“InjectionToken”

Rah*_*har 0 build angular

在此输入图像描述

上述项目在本地设置上运行良好。但是当我们托管在任何 Linux 服务器上时。它给出了上述错误。

小智 5

我已将该行添加到 frontend/package.json

"ngx-window-token": "^5.0.0",

我在这里找到了解决方案: https://github.com/juice-shop/juice-shop/commit/84b0d6e3a85bbd1ab34aebb32a511811100a41c0

这对我有用