You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I arrived at this issue after trying to figure out how to fix an 'incorrect' vetur project configuration. This was my experience:
vetur extension seems to initialise OK when opening the workspace (no warnings or errors reported)
two warnings pop up on opening a .vue file:
vetur can't find package.json
vetur can't find tsconfig.json or jsconfig.json
I figured that as these files are a very important part of the app I should fix the issue....
I already have package.json and jsconfig.json in my vue project but these are one folder below my 'project root' e.g. root/frontend/package.json not root/package.json so this must be the problem.....
I looked at the docs and found the (very confusing) section on the vetur.config.js file and so I had a go at fixing it by creating the config file with the 'vetur root' one level down. The 'monorepo / projects' section confused me as I don't know what a monorepo is so I left that section out and just set the default root
Unfortunately this did not work and I can't figure out why from the docs
I have found the option to disable the warning in the vetur settings however I have no idea what an 'incorrectly setup' project means or whether this is a good or bad thing to do!
I finally managed to fix it by trial and error, this is the working vetur.config.js file
Feature Request
We have three config file.
vetur.config.js
tsconfig.json/jsconfig.json
package.json
We need to describe their previous relationships and roles.
The text was updated successfully, but these errors were encountered: