question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vetur ignoring tsconfig.json from project when running VSCode in workspace mode

See original GitHub issue
  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: Linux
  • Vetur version: 0.11.7
  • VS Code version: 1.20

Problem

Vetur ignores tsconfig.json in project (or at least the experimentalDecorators option) when running VSCode in workspace mode.

Reproducible Case

I used the nuxt TypeScript template from here and had the folder open in a workspace. I was simply getting this error message on decorators: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.

After some time i figured I might try without using the workspace so I opened the project directly and the error was gone. In addition I also tried placing the same tsconfig.json in the workspace directory which also worked.

I think vetur has no proper VSCode workspace functionality yet for finding the tsconfig.json.

Related issues

https://github.com/vuejs/vetur/issues/567 https://github.com/nuxt-community/typescript-template/issues/5

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
squalsoftcommented, Apr 27, 2019

I have the same issue and i found little workaround in a workspace mode! If you place your nuxt/frontend project on the top of workspaces tree then Vetur obviously read tsconfig from this first workspace and everything works without warnings/errors in .vue files.

3reactions
jkehlercommented, Feb 20, 2018

I’m experiencing the same problem. If I just load up my project without a workspace everything works as expected. But the moment I load up my Vue project inside a workspace Vetur is not using the tsconfig.json file from the project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does Typescript ignore my tsconfig.json inside Visual ...
Short Answer. VS Code ignores your tsconfig.json when you use a newer version of TypeScript than the one that VS Code provides out...
Read more >
jsconfig.json Reference - Visual Studio Code
Visual Studio Code's JavaScript support can run in two different modes: ... have a jsconfig.json file in your workspace that defines the project...
Read more >
Using Vue with TypeScript - Vue.js
To enable Takeover Mode, you need to disable VSCode's built-in TS language service in your project's workspace only by following these steps: In...
Read more >
Vue Setup Guide in VS Code with Vetur and the Airbnb ESLint ...
In this developer productivity video, I go over how to set up Vue in Visual Studio Code with Vetur and the Airbnb ESLint...
Read more >
webpack unknown file extension ".ts" - You.com | The search engine ...
Unknown file extension ".ts" error appears when trying to run a ts-node script ... Note that if you open VS Code in workspace...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found