[英]Cant import from non EcmaScript module in angular
I am using ngx-image-cropper dependency and I don't know why this error is coming whenever I import it in my app.component.module.ts in angular.我正在使用 ngx-image-cropper 依赖项,我不知道为什么每当我将它导入 angular 的 app.component.module.ts 中时都会出现此错误。
Trying to solve this issue from 3 hours but unable to!!尝试从 3 小时内解决此问题但无法解决!
Remove the node modules删除节点模块
rm -rf node_modules rm -rf 节点模块
And npm install again and it works properly.并再次安装 npm 并正常工作。
for more information check this link: https://github.com/Mawi137/ngx-image-cropper/issues/282有关更多信息,请查看此链接: https://github.com/Mawi137/ngx-image-cropper/issues/282
This issue was resolved with npm ci
此问题已通过npm ci
解决
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.