Please consider editing your post and mark it as obsolete instead. Do you want to delete post?
Javascript Private Variables
Permanently deleted user
Created
ReSharper gives "unexpected token" error when using private variables in JavaScript (#variableName). Is there a way to suppress this until a fix is available?
This is a old post, but I have encounter the same issue, it seems that the ReSharper can not recognize class private member in JavaScript at all, whether it's private field or private method.
My environment is VS2022 17.2.1, ReShaper 2022.1.1, with JavaScript language level set to "Experimental".
Could you please check if enabling the following option helps in your case - ReSharper | Options | Code Editing | Third-Party Code | Search for web files that could affect performance and exclude them from indexing.
Hello,
Could you please provide a screenshot demonstrating the "unexpected token" error?
Thanks in advance.
This is a old post, but I have encounter the same issue, it seems that the ReSharper can not recognize class private member in JavaScript at all, whether it's private field or private method.
My environment is VS2022 17.2.1, ReShaper 2022.1.1, with JavaScript language level set to "Experimental".
Hello Ryans610
thank you for the feedback.
I've filed a corresponding issue - https://youtrack.jetbrains.com/issue/RSRP-488920/
You are welcome to follow it by selecting start on left to the issue title.
Hello Ryans610
Could you please check if enabling the following option helps in your case - ReSharper | Options | Code Editing | Third-Party Code | Search for web files that could affect performance and exclude them from indexing.
Thank you.
Angelina Elycheva
It does nothing, the problem remain the same.
Thank you for the reply
Then I can only suggest following the YouTrack issue.