I've created a Vue project through Vue-CLI v3.0.0-beta.15, now, everything is working, I mean, when I do npm run serve it compiles and runs fine but TypeScript throws the following error message and only inside the editor!
Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
The things I've tried and didn't work:
I double check that the
experimentalDecoratorsis set to true in mytsconfig.jsonfile which Vue does by default.I tried to create a
jsconfig.jsonfile with the following options:{ "compilerOptions": { "experimentalDecorators": true } }I tried to change the following options in VSCode
"javascript.implicitProjectConfig.experimentalDecorators": true
Now, I'm using the Vetur extension with VSCode which I already posted an issue on their repo but I don't use any extensions with Visual Studio for Vue and yet I get the same error so I don't know what triggers it but I think that something doesn't pick the tsconfig.json file.
Here are the steps I've taken to generate the project:
- mkdir experiment && cd $_
- npm init
- npm install -D
@vue/cli - ./node_modules/.bin/vue create dashboard
I've used the following options:
- Check the features needed for your project: Babel, TS, PWA, Router, Vuex, CSS Pre-processors, Linter, Unit, E2E
- Use class-style component syntax? Yes
- Use Babel alongside TypeScript for auto-detected polyfills? Yes
- Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): SCSS/SASS
- Pick a linter / formatter config: TSLint
- Pick additional lint features: Lint on save
- Pick a unit testing solution: Mocha
- Pick a E2E testing solution: Cypress
- Where do you prefer placing config for Babel, PostCSS, ESLint, etc.? In dedicated config files
- Save this as a preset for future projects? No
Then navigate to dashboard/src/views/Home.vue
That's how it looks like in Visual Studio:
And that's how it looks like in VSCode:


%UserProfile%\.vscode\extensions\vetur\vetur\package.json, check the dev-dependencies (last in the file and compare to github.com/vuejs/vetur/blob/master/package.json (tslint version I think) - ippi