Skip to content
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

vue3项目运行报错,Failed to resolve import "'+e+'" from "node_modules\.vite\deps\@vue-office_pdf.js?v=d89e3d17" #432

Open
chenziyang12 opened this issue Feb 11, 2025 · 0 comments

Comments

@chenziyang12
Copy link

运行时发现这个错误:

Image

经过排查发现:
1.vue-echarts间接引入了vue-demi@0.13.11
2.pinia@2.3.1 引入了 vue-demi@0.14.10
和作者要求安装的vue-demi@0.14.6不一样,强制安装0.14.6也不行,后尝试取消安装.vue-echarts也还是这个错误,尝试升级vue或者vite版本也没有用,目前因为无源码无从排查,麻烦作者大大看到回复一下,万分感谢

具体项目依赖为:
{
"name": "admin-template-v3",
"private": true,
"version": "0.1.2",
"scripts": {
"dev": "vite",
"build": " vite build ",
"preview": "npm run build && vite preview",
"clean:lib": "rimraf node_modules"
},
"dependencies": {
"@aspnet/signalr": "^1.0.0",
"@ckeditor/ckeditor5-vue": "^7.0.0",
"@element-plus/icons-vue": "^1.1.4",
"@originjs/vite-plugin-commonjs": "^1.0.3",
"@vitejs/plugin-vue-jsx": "^1.3.10",
"@vue-office/pdf": "^2.0.10",
"animate.css": "^4.1.1",
"axios": "^0.26.0",
"ckeditor5": "43.3.0",
"countup.js": "^2.0.8",
"cropperjs": "^1.5.12",
"crypto-js": "^4.2.0",
"default-passive-events": "^2.0.0",
"echarts": "^5.4.3",
"echarts-gl": "^2.0.8",
"echarts-wordcloud": "^2.0.0",
"element-plus": "^2.4.3",
"exceljs": "^4.3.0",
"file-saver": "^2.0.5",
"font-awesome": "^4.7.0",
"gcoord": "^1.0.5",
"image-conversion": "^2.1.1",
"js-cookie": "^3.0.1",
"js-file-download": "^0.4.12",
"js-pinyin": "^0.2.5",
"jsencrypt": "^3.2.0",
"json-editor-vue3": "^1.0.6",
"jszip": "^3.10.1",
"mitt": "^3.0.0",
"nprogress": "^0.2.0",
"pinia": "^2.1.3",
"pinia-plugin-persistedstate": "^3.1.0",
"print-js": "^1.6.0",
"qrcode.vue": "^3.4.1",
"sortablejs": "^1.14.0",
"swiper": "^11.0.5",
"unplugin-auto-import": "^0.6.6",
"vue": "^3.2.31",
"vue-echarts": "^6.6.1",
"vue-router": "^4.0.12",
"vue3-clipboard": "^1.0.0",
"vue3-print-nb": "^0.1.4",
"vue3-virtual-scroll-list": "^0.2.0",
"vxe-table": "4.5.9",
"vxe-table-plugin-element": "3.0.7",
"vxe-table-plugin-export-xlsx": "3.0.5",
"x2js": "^3.4.4",
"vue-demi": "0.14.6",
"xe-utils": "^3.5.4",
"xlsx": "^0.18.5"
},
"devDependencies": {
"@types/crypto-js": "^4.2.2",
"@types/file-saver": "^2.0.5",
"@types/js-cookie": "^3.0.1",
"@types/js-md5": "^0.4.3",
"@types/node": "*",
"@types/nprogress": "^0.2.0",
"@vitejs/plugin-vue": "^2.2.0",
"@vue/compiler-sfc": "^3.2.31",
"js-md5": "^0.7.3",
"rollup-plugin-compression": "^1.0.3",
"rollup-plugin-visualizer": "^5.9.0",
"sass": "^1.45.1",
"sass-loader": "^12.4.0",
"screenfull": "^6.0.0",
"typescript": "^4.5.5",
"unplugin-vue-components": "^0.17.18",
"vite": "^2.8.3",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-optimize-persist": "^0.1.2",
"vite-plugin-package-config": "^0.1.1",
"vite-plugin-windicss": "^1.7.0",
"vue-clipboard3": "^1.0.1",
"vue-global-api": "^0.4.1",
"windicss": "^3.4.3"
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant