[Vuejs]-Unexpected token in JsonForms custom-renderer props declaration

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.

Leave a comment