0๐
You need to use a custom parser for Typescript indeed: @typescript-eslint/parser
Here is an example from eslint.vue: how to use a custom eslint parser?
parserOptions: {
parser: '@typescript-eslint/parser'
},
I also recommend reading this SoF thread to understand the difference between parser
and parseOption.parser
0๐
I managed to find the issue.
The project that this was implemented in had Vue set up for JS only.
I used the vue CLI to add typescript using vue add typescript
. And after fixing some errors that came with that change. The vue component built successfully.
- [Vuejs]-How can extract css from nuxt version3 in build stage
- [Vuejs]-How to properly log out in Nuxt 3 / Vue JS?
Source:stackexchange.com