cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

ES6 syntax error for Javascript Service

Highlighted
Peridot

ES6 syntax error for Javascript Service

Hi, 

I found a very strange phenomenon,  the ES6 syntax like "let", "const" work well normally.  But in certain situation,  the Lint will report error, see the attached picture. 

 

The line #315 and #325 define the same variable name , but it's not the root cause.  Changing to different variable name has the same error. 

 

It seems the error occurs when the code lines exceeds about 310, but I'm sure . 

 

seanccc_0-1600413217864.png

 

Regards,

Sean

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!