Closed OdaNeo closed 3 years ago
Please provide a repro case. Please read https://github.com/vuejs/vetur/blob/master/.github/NO_REPRO_CASE.md.
You may have this problem. https://vuejs.github.io/vetur/guide/FAQ.html#vetur-can-t-find-tsconfig-json-jsconfig-json-in-xxxx-xxxxxx
Please provide a repro case. Please read https://github.com/vuejs/vetur/blob/master/.github/NO_REPRO_CASE.md.
You may have this problem. https://vuejs.github.io/vetur/guide/FAQ.html#vetur-can-t-find-tsconfig-json-jsconfig-json-in-xxxx-xxxxxx
I try overnight and I just find why. This project must at the root of vscode's workshape.After doing this, errors "Cannot find name 'process'" & "vetur cant find tsconfig.json" are gone. Thanks a lot! I can go sleep now ✌.
Vetur: Restart VLS
Info
Problem
I create a vue2 project by vue-property-decorator to use typescript. And I find a problem while running such script in a .vue file.
console.log(process.env.VUE_APP_BASE_API)
It works in nodejs and my browser, but I just get a Vetur error:Actually, I already install @types/node. Here is my package.json:
To debug this, I just run
console.log(process.env.VUE_APP_BASE_API)
in a .ts file. It works, no bug, no error.