Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experimental support for decorators error when tsconfig.json isn't in project root. #828

Closed
jessehallam opened this issue Jun 26, 2018 · 2 comments

Comments

@jessehallam
Copy link

  • [ x] I have searched through existing issues
  • [ x] I have read through docs
  • [ x] I have read FAQ

Info

  • Platform: Windows 10
  • Vetur version: 0.12.5
  • VS Code version: 1.24.1

Problem

Experimental TS decorators yield a false negative on the tsconfig "experimentalDecorators": true value when VS Code is opened to a folder farther up the tree from the location where tsconfig.json resides.

In other words:

  • The project lives at C:\Projects\FooProject, and VS Code is opened there.
  • The tsconfig.json file is, in fact, at C:\Projects\FooProject\FrontEnd\tsconfig.json.

Result:

The @ symbol next to a decorator in SFCs has a red line under it. It shows the following error:

Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.

Opening VS Code to the exact director with the tsconfig.json file fixes the issue.

Reproducible Case

See this repo for a minimal reproducible sample.

This image shows that VS Code believe there is an error in App.vue.

And this image shows that VS Code believes the error lies in the decorator.

@iam3yal
Copy link

iam3yal commented Jun 26, 2018

Related #815.

@jessehallam
Copy link
Author

Closing this issue and using the message chain of #815.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants