New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vite 启动报错 #571
Comments
是 vue3 嘛,vue-cropper@next是 vue3 的版本 |
我也遇到了同样的问题,这是我package.json |
刚刚 vite 初始化的项目,没有问题 |
但我这边的确报错了 |
是@next的 |
更新下 @vitejs/plugin-vue 试一试 |
你怎么引入的 |
|
本地运行是没有问题的 |
感觉还是 vite 版本的问题, |
"@vitejs/plugin-vue": "^1.3.0", |
一样的 |
本来加上^就会更新到最新版 |
这是因为 |
我修改下,对应的依赖我移动处理下 |
1.0.1版本我移动到dependencies了,应该不是 vue 版本的问题,都是向上兼容安装的 |
错误复现:
这个情况下安装vue-cropper@1.0.0,因为项目与vue-cropper一样都是用了vue@^3.0.5,此时vue-copper使用同一个vue依赖(3.1.4)报错。 然后更新 lock 文件:
错误解决。 当然,vue-copper移动依赖是最合理的解决方式 |
安装 |
了解,我当时处理时,没有移动依赖到 dependencies |
解决了 |
一样的错误 还是不知道怎么解决 |
node_modules/vue-cropper/dist/vue-cropper.es.js:1:55: error: No matching export in "node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "createElementBlock"
node_modules/vue-cropper/dist/vue-cropper.es.js:1:99: error: No matching export in "node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "createElementVNode"
node_modules/vue-cropper/dist/vue-cropper.es.js:1:123: error: No matching export in "node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "normalizeStyle"
node_modules/vue-cropper/dist/vue-cropper.es.js:1:178: error: No matching export in "node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "normalizeClass"
The text was updated successfully, but these errors were encountered: