问题描述
我正在尝试向我的 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 [email protected]
包然后安装 npm install.
please uninstall ngx-croppie
package and again install npm install [email protected]
package and then install npm install.
这篇关于Angular - 无法解析 node_modules\ngx-croppie\esm5 中的“croppie"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!