Angular - 无法解析 node_modules\ngx-croppie\esm5 中的“croppie" [英] Angular - Can't resolve 'croppie' in node_modules\ngx-croppie\esm5

查看:27
本文介绍了Angular - 无法解析 node_modules\ngx-croppie\esm5 中的“croppie"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试向我的 Angular 项目添加一个cropie,并点击此链接:

I'm trying to add a croppie to my Angular project, and by following this link:

https://www.npmjs.com/package/ngx-croppie

我执行了这个命令:

npm i ngx-croppie

这将croppie 和ngx-croppie 添加到我在node_modules 中的项目中,但现在我面临下一个错误:事实上,当我打开我的组件时,有一个这个问题:

And this added croppie and ngx-croppie to my project in node_modules, but now I'm facing next error: And Indeed when I open my component, there is a this issue:

在我的 node_modules 中没有croppie 文件夹,但在node_modules/@types/ 中存在croppie,如下图所示:

And in my node_modules there is no croppie folder but in node_modules/@types/ croppie exist as in next image:

推荐答案

请卸载 ngx-croppie 包并重新安装 npm install ngx-croppie@1.0.1 包然后安装 npm install.

please uninstall ngx-croppie package and again install npm install ngx-croppie@1.0.1package and then install npm install.

这篇关于Angular - 无法解析 node_modules\ngx-croppie\esm5 中的“croppie"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆