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

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

问题描述

我正在尝试通过以下链接向我的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 ngx-croppie@1.0.1 package,然后再安装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天全站免登陆