问题描述
我正在尝试通过以下链接向我的Angular项目中添加裁剪:
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
这将nodepmodules中的croppie和ngx-croppie添加到了我的项目中,但现在我面临下一个错误:而且确实,当我打开组件时,会出现一个问题:
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]
package,然后再安装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"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!