Javascript Private Variables

ReSharper gives "unexpected token" error when using private variables in JavaScript (#variableName). Is there a way to suppress this until a fix is available?

0
6 comments

Hello,

 

Could you please provide a screenshot demonstrating the "unexpected token" error?

Thanks in advance.

0

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".

0

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.

0

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. 

0

Angelina Elycheva

It does nothing, the problem remain the same.

0

Thank you for the reply

Then I can only suggest following the YouTrack issue.

1

Please sign in to leave a comment.