As written in this manual https://www.vuemastery.com/blog/vue-3-migration-build/
I'm updated package.json added vue.config.js and ran yarn install command, and see this error
Error: Cannot find module 'vue-template-compiler/package.json'
Require stack:
- /myproject/node_modules/@vue/cli-service/lib/config/base.js
- /myproject/node_modules/@vue/cli-service/lib/Service.js
- /myproject/node_modules/@vue/cli-service/bin/vue-cli-service.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
at Function.Module._load (internal/modules/cjs/loader.js:730:27)
at Module.require (internal/modules/cjs/loader.js:957:19)
at require (internal/modules/cjs/helpers.js:88:18)
at /myproject/node_modules/@vue/cli-service/lib/config/base.js:73:32
at /myproject/node_modules/@vue/cli-service/lib/Service.js:242:40
at Array.forEach (<anonymous>)
at Service.resolveChainableWebpackConfig (/myproject/node_modules/@vue/cli-service/lib/Service.js:242:26)
at Service.resolveWebpackConfig (/myproject/node_modules/@vue/cli-service/lib/Service.js:246:48)
at PluginAPI.resolveWebpackConfig (/myproject/node_modules/@vue/cli-service/lib/PluginAPI.js:138:25)
error Command failed with exit code 1.
i tried changing compiler versions but it doesn't help
how to fix it ?
thanks in advance
Did you add @vue/compiler-sfc? See installation step 2 here: https://v3.vuejs.org/guide/migration/migration-build.html#installation