Issue
Like an image bellow, I have an error in a javascript file wrriten a class with private fields in eclipse. Is's no problem in the "class" words but there is a problem in the "#" words at private fields. I can run this project with no error. So it is the correct code. Can I solve the problem?
Solution
Yes, it is a correct code, #variable
is not yet understood by eclipse, it is compiling for old version of ECMA Script
The warning appears due to asian characters you type inside the code, try to remove the asian language from the code and use plain english, then Eclipse will take it.
Answered By - Dickens A S