Subscribe on changes!

sfc playground does not launch

avatar
Nov 15th 2021

Version

3.2.22

Reproduction link

github.com/vuejs/vue-next

Steps to reproduce

  • clone the vue-next repo
  • pnpm i
  • pnpm run dev-sfc -> fail :/

What is expected?

Launch the sfc playground

What is actually happening?

Error :

failed to load config from /home/Benoit.Vasseur/workspace/vue-next/packages/sfc-playground/vite.config.ts error when starting dev server: Error: @vitejs/plugin-vue requires vue (>=3.2.13) or @vue/compiler-sfc to be present in the dependency tree. at Object. (/home/Benoit.Vasseur/workspace/vue-next/node_modules/.pnpm/@vitejs+plugin-vue@1.9.3_vite@2.6.5/node_modules/@vitejs/plugin-vue/dist/index.js:4088:11) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object. (/home/Benoit.Vasseur/workspace/vue-next/packages/sfc-playground/vite.config.ts:32:36) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.require.extensions. [as .ts] (/home/Benoit.Vasseur/workspace/vue-next/node_modules/.pnpm/vite@2.6.5/node_modules/vite/dist/node/chunks/dep-55830a1a.js:68630:20)  ELIFECYCLE  Command failed with exit code 1.


  • node version : v16.13.0
  • pnpm version : 6.22.1
  • Installed pnpm with npm install -g
  • I did not configure anything else. pnpm install is green.
avatar
Jan 5th 2022

You need to run https://github.com/vuejs/vue-next/blob/master/package.json#L25 first

I use node 16.5.0 pnpm 6.24.4 and i have same problen @posva

avatar
Mar 24th 2022

You need to run https://github.com/vuejs/vue-next/blob/master/package.json#L25

hello, I have the same problem

  1. pnpm i
  2. pnpm run preinstall
  3. pnpm run dev-sfc

image

pnpm: v6.25.0 node: v16.14.2

avatar
Mar 24th 2022

You need to run https://github.com/vuejs/vue-next/blob/master/package.json#L25 first

I use node 16.5.0 pnpm 6.24.4 and i have same problen @posva

Has your problem been solved?

avatar
May 17th 2023

I have the same question

pnpm --version
7.27.1
 node --version
v16.13.2
pnpm run dev-sfc

image