【发布时间】:2020-05-26 03:33:06
【问题描述】:
请帮忙,我明白了
SyntaxError: Cannot use import statement outside a module"
在 Angular 应用程序中使用 @ionic-native/health。 repo 在这里,运行“npm i”,然后“ng test”:
【问题讨论】:
-
请更新您的帖子:复制/粘贴(以文本形式)您引用“@ionic-native/health”的地方。我在 app.component.spec.ts 中没有看到它——看起来不错。问题是“ng test”以某种方式占用了 index.js,这导致了非法语法错误。
标签: angular jestjs ionic-native nrwl-nx