Solution to Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
1 min read
With this code:
@Componentexport default class CategoryRating extends Vue { @Prop({default: {}}) category: any;
```text
I kept getting this VS Code 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.

Even though I have experimentalDecorators set to true in my tsconfig
```json
{ "compilerOptions": { "experimentalDecorators": true, }}Turns out I had the parent folder open in VS Code,
\code\project\
But I needed to have the actual project as my root in VS Code
\code\project\app
For this error to go away.
I tried copying the tsconfig into the root folder, but that didn’t help.
So, If you want this error to go away, then make sure you have that setting set to true in your tsconfig and also make sure you have the app open at the right level.
Jon
Share:
Share on LinkedIn
Quick Share: Your custom post text has been copied to your clipboard! Click the button below to open LinkedIn's share dialog, then paste it.
💡 Tip: LinkedIn will open in a new tab. Use Ctrl+V (or Cmd+V on Mac) to paste your text.
Note: LinkedIn will show the article preview. You can add your custom text above it.