D
D
Denis Bukreev2018-08-17 11:31:05
JavaScript
Denis Bukreev, 2018-08-17 11:31:05

JS highlighting in PHPStorm breaks due to expand statement, what should I do?

The settings are set to ES6:
5b768743c6f96595062868.png
But in the project (on VueJS), the highlighting starts to throw errors due to the reversal operator, which is in ES6:
5b7687874d48c815673167.png
If the line with this operator is commented out, then the highlighting returns to normal
What can I do about it?
Now I saw that the editor also considers arrow functions as an error in the code.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Bukreev, 2018-08-17
@denisbookreev

Adding an attribute to the script tag helpedtype="text/babel"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question