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

277
Views
Vue 3 Mono Repo how to use the root dev dependancies

I setup a mono repo using Ionic and Vue 3 the only issue is that in my child apps I still need to add the following into package.json. How can I use the root devDepenencies?

"devDependencies": {
   "@vue/cli-plugin-typescript": "~5.0.0-rc.1"
},

Here is my structure:

apps
  - app1
    - package.json <-- here i have to add devDependency
    - tsconfig.json
  - app2
    - package.json <-- here i have to add devDependency
    - tsconfig.json
package.json <-- devDependency is in here too
tsconfig-base.json

Everything works this way but it creates a node_modules folder with a ton of dependencies in each child app. I'd like to avoid that if possible.

If I remove the devDependency I get the following error:

Module not found: Error: Can't resolve './src/main.js'

So its not seeing the dependency and thinking I'm using js but in fact i'm using typescript.

I tried setting the baseUrl in the tsconfigs but nothing has worked yet. Any help would be greatly appreciated.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Instead of configuring vue to find it you could set up a path link:

"devDependencies": {
    "@vue/cli-plugin-typescript": "link:../node_modules/@vue/cli-plugin-typescript"
}
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!