[vite] Internal server error: (0 , import_vite.transformWithEsbuild) is not a function
chimojiacai opened this issue · 3 comments
嗨,我这边
cnpm install
npm run dev
报如下错误:
3:05:24 PM [vite] Internal server error: (0 , import_vite.transformWithEsbuild) is not a function
Plugin: vite:vue
File: /vue-admin-box/src/App.vue
at transformMain (/vue-admin-box/node_modules/_@vitejs_plugin-vue@1.9.3@@vitejs/plugin-vue/dist/index.js:4519:83)
at async Object.transform (/vue-admin-box/node_modules/_vite@2.3.7@vite/dist/node/chunks/dep-bc228bbb.js:44765:30)
at async transformRequest (/vue-admin-box/node_modules/_vite@2.3.7@vite/dist/node/chunks/dep-bc228bbb.js:59029:29)
at async viteTransformMiddleware (/vue-admin-box/node_modules/_vite@2.3.7@vite/dist/node/chunks/dep-bc228bbb.js:59167:32)
无法正常访问.
vite依赖安装错误,检查一下packages.json与线上的vite版本标识是否一致
能正常访问了,我拉的是码云的代码,好像不是最新的.
从github上拉是正常的.
感谢回复.
码云,我同步了