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
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.
Info
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 wheretsconfig.json
resides.In other words:
C:\Projects\FooProject
, and VS Code is opened there.tsconfig.json
file is, in fact, atC:\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: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.
The text was updated successfully, but these errors were encountered: