【问题标题】:Cant import from non EcmaScript module in angular无法以角度从非 EcmaScript 模块导入
【发布时间】:2022-01-07 17:03:01
【问题描述】:

我正在使用 ngx-image-cropper 依赖项,但我不知道为什么每当我将它导入到我的 app.component.module.ts 中时会出现此错误。

尝试从 3 小时开始解决此问题但无法解决!

【问题讨论】:

    标签: angular npm dependencies npm-install ngx-image-cropper


    【解决方案1】:

    移除节点模块

    rm -rf 节点模块

    然后再次 npm install ,它就可以正常工作了。

    欲了解更多信息,请查看此链接:https://github.com/Mawi137/ngx-image-cropper/issues/282

    【讨论】:

    • 我这样做了,然后它适用于 ngx-image-cropper 但开始显示与 ngx-extended-pdf-viewer 相同的其他依赖项的错误
    猜你喜欢
    • 2022-06-15
    • 2020-05-02
    • 1970-01-01
    • 2016-12-19
    • 2020-11-17
    • 2022-06-12
    • 1970-01-01
    • 2021-11-19
    • 2018-08-26
    相关资源
    最近更新 更多