G
G
GaserV2021-07-19 21:42:53
typescript
GaserV, 2021-07-19 21:42:53

Why am I getting Parsing error: Unexpected token when defining TS properties?

Why am I getting Parsing error: Unexpected token when defining TS properties?

For example:

class SomeComponent extends Vue {
   private isAdmin: boolean = false;

   ...
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2021-07-19
@Kozack Vue.js

Your code is quite correct . Look for the problem elsewhere.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question