简体   繁体   English

无法从 angular 中的非 EcmaScript 模块导入

[英]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.

相关问题 无法在我的 Angular 11 应用程序中从非 EcmaScript 模块导入命名导出“ɵɵngDeclareFactory” - Can't import the named export 'ɵɵngDeclareFactory' from non EcmaScript module in my angular 11 app 无法从 Angular 中的非 EcmaScript 模块导入命名导出“ChangeDetectionStrategy” 8 - Can't import the named export 'ChangeDetectionStrategy' from non EcmaScript module in Angular 8 Angular11 更新,ng2-charts,错误:无法从非 EcmaScript 模块导入命名导出“Chart”(仅默认导出可用) - Angular11 update, ng2-charts, Error: Can't import the named export 'Chart' from non EcmaScript module (only default export is available) 无法从非 EcmaScript 模块导入命名导出“指令”(仅默认导出可用) - Can't import the named export 'Directive' from non EcmaScript module (only default export is available) ./node_modules/ngx-window-token/fesm2015/ngx-window-token.mjs 中的错误。 无法从非 EcmaScript 模块导入命名的导出“InjectionToken” - ERROR in ./node_modules/ngx-window-token/fesm2015/ngx-window-token.mjs. Can't import the named export 'InjectionToken' from non EcmaScript module Angular 2+ 将非模块导入 TS - Angular 2+ Import a Non Module into TS 无法从Angular 2中的非Angular模块导入 - Unable to Import from Non Angular Modules in Angular 2 来自其他功能模块的Angular 2导入服务 - Angular 2 import service from other feature module 如何从 Angular 6 中的另一个模块导入服务 - How to import a service from another module in Angular 6 Angular2从模块导入组件/服务 - Angular2 import components/services from module
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM