Closed Pasoul closed 3 years ago
安装antd-img-crop后,运行项目报错
antd-img-crop
./node_modules/antd-img-crop/dist/antd-img-crop.esm.js Module not found: Can't resolve '@babel/runtime/helpers/esm/asyncToGenerator' in '/Users/admin/Desktop/panda/web-ac-cms/node_modules/antd-img-crop/dist'
但是node_modules存在该文件,为什么会报错找不到呢?
版本号: "@babel/runtime": "^7.13.10" "antd-img-crop": "^3.14.1"
可尝试删除 node_modules 目录,然后重启 npm install 一下。
node_modules
npm install
如果还不行的话,可以提供一个 demo。
先close吧,有空试试
问题
安装
antd-img-crop
后,运行项目报错但是node_modules存在该文件,为什么会报错找不到呢?
版本号: "@babel/runtime": "^7.13.10" "antd-img-crop": "^3.14.1"