I tried to use Vetur in my project of TypeScript with Nuxt.js. Then, 'types' can only be used in a .ts file. Vetur(8010) appeared.

However, I found this message didn't appear when I tried to use Vetur in a project of TypeScript with Vue CLI.
Would you show me how deal with that message when using Vetur in TypeScript with Nuxt.js?
It shouldn't be appeared if the block is lang="ts". Can you provide a self-contained repro? (pasting .vue file, providing example github repo etc.)
I found it is possible to solve this problem through removing vue-property-decorator and adding nuxt-property-decorator. So it is not problem of Vetur. I'm sorry.
My solution to this problem:
I added "allowJs": true and "checkJs": true to file tsconfig.json.
My solution was to:
lang="ts" as an attribute in my script tag (as described above)In case it helps anyone else, I also ran into this issue when I had a <script lang="ts"> block and later in the same component I had an additional, leftover <script> block.
For people using @flow, using <script lang="js"> fixes the issue in a similar manner.
Most helpful comment
It shouldn't be appeared if the block is
lang="ts". Can you provide a self-contained repro? (pasting .vue file, providing example github repo etc.)