npm run-build:h5:ssr
- 发布:2023-08-18 12:02
- 更新:2023-08-24 14:02
- 阅读:180
产品分类: uniapp/H5
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: window 10
HBuilderX类型: 正式
HBuilderX版本号: 3.8.12
浏览器平台: Chrome
浏览器版本: 115.0.5790.171
项目创建方式: HBuilderX
操作步骤:
预期结果:
正常build
正常build
实际结果:
[HBuilder] 11:56:55.786 [plugin:vite:load-fallback] Could not load D:\my_uniapp\my-vue3-project\node_modules\@dcloudio\uni-h5-vue\dist\vue.runtime.esm.js/server-renderer (imported by src/pages/index/index.vue): ENOENT: no such file or directory, open 'D:\my_uniapp\my-vue3-project\node_modules\@dcloudio\uni-h5-vue\dist\vue.runtime.esm.js\server-renderer'
[HBuilder] 11:56:55.786 [plugin:vite:load-fallback] Could not load D:\my_uniapp\my-vue3-project\node_modules\@dcloudio\uni-h5-vue\dist\vue.runtime.esm.js/server-renderer (imported by src/pages/index/index.vue): ENOENT: no such file or directory, open 'D:\my_uniapp\my-vue3-project\node_modules\@dcloudio\uni-h5-vue\dist\vue.runtime.esm.js\server-renderer'
7***@qq.com
将3.8.4版本的依赖 HBuilderX.3.8.4.20230531\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio 复制覆盖掉最新版的 HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio 就可以了。历史版本下载地址:https://hx.dcloud.net.cn/Tutorial/HistoryVersion
2024-01-23 10:55