uni-app
uni-app copied to clipboard
从官网上新下载的 Vue3/Vite 模板, `npm run dev:h5:ssr` 直接报错,ssr模式跑都跑不起来
问题描述
从官网上新下载的 Vue3/Vite 模板, npm run dev:h5:ssr 直接报错,ssr模式跑都跑不起来
复现步骤
- 访问 https://uniapp.dcloud.net.cn/quickstart-cli.html
- 从 gitee 下载模板
- npm install
- npm run dev:h5:ssr
预期结果 起码可以顺利运行
实际结果
error when starting dev server:
Error: Failed to resolve vue/compiler-sfc.
@vitejs/plugin-vue requires vue (>=3.2.25) to be present in the dependency tree.
系统信息:
- 发行平台:
h5 - 操作系统
win11 - uni-app版本
3.0.0-3070920230324001 - 设备信息
chrome lts
补充信息 无
3.0.0-alpha-3070720230316001存在同样的问题