Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.9K
Views
upgrade to vue3 Cannot find module 'vue-template-compiler/package.json'

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

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Did you add @vue/compiler-sfc? See installation step 2 here: https://v3.vuejs.org/guide/migration/migration-build.html#installation

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!