Closed 2815261401 closed 5 months ago
throw new Error(Cannot find module '@vue/compiler-sfc@${vueVerison.slice(-1)}.x.x'. Please install it.); ^ Error: Cannot find module '@vue/compiler-sfc@3.x.x'. Please install it. 需要自己安装@vue/compiler-sfc不然报以上错误
Cannot find module '@vue/compiler-sfc@${vueVerison.slice(-1)}.x.x'. Please install it.
0.8.0版本没有这个问题
@2815261401 你的安装策略是否开启了自动安装 peerDependencies?
没有,就是普通的pnpm i
@2815261401 发布了最新版本, 目前如果你的vue版本大于3.2.13 或者是 2.7.x不会提示错误, 否则就需要自己装一下 @vue/compiler-sfc.
可以了
throw new Error(
Cannot find module '@vue/compiler-sfc@${vueVerison.slice(-1)}.x.x'. Please install it.
); ^ Error: Cannot find module '@vue/compiler-sfc@3.x.x'. Please install it. 需要自己安装@vue/compiler-sfc不然报以上错误