uni-app icon indicating copy to clipboard operation
uni-app copied to clipboard

从官网上新下载的 Vue3/Vite 模板, `npm run dev:h5:ssr` 直接报错,ssr模式跑都跑不起来

Open sonofmagic opened this issue 2 years ago • 1 comments

问题描述 从官网上新下载的 Vue3/Vite 模板, npm run dev:h5:ssr 直接报错,ssr模式跑都跑不起来

复现步骤

  1. 访问 https://uniapp.dcloud.net.cn/quickstart-cli.html
  2. 从 gitee 下载模板
  3. npm install
  4. 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

补充信息

sonofmagic avatar Mar 31 '23 02:03 sonofmagic

3.0.0-alpha-3070720230316001存在同样的问题

jacksplwxy avatar May 31 '23 15:05 jacksplwxy