In the last week, I've started having an issue with ReSharper giving me a "Symbol cannot be properly resolved" error with @angular/core
components. However, I know that those components are properly installed and my solutions still builds, publishes, and runs correctly.
This has been addressed in the past (Visual Studio 2015 Enterprise with ReSharper 10 Ultimate — Cannot be properly resolved) and it seems that the only answer was to disable ReSharper and wait for them to put out an update resolving the issue. Following the instructions mentioned here, I was able to set up hotkeys for disabling/enabling Resharper.
The issue goes away when ReSharper is disabled. However, I was wondering if a better answer has come out in the last two years... disabling ReSharper doesn't exactly seem like a good solution.
(I'm using Visual Studio Community 2017 15.8.1 and ReSharper 2018.1.4)
EDIT '19
Everytime R# gets an update, this answer gets upvoted, so I assume this problem occurs when something goes wrong after updating R# to the newest version. The solution still applies for me.
I usually do the same workaround, without reinstalling it and after I have updated to the latest version of R#:
Works for me all the time, but again, I am working under C# and the "solution" might not apply to you.
Usually it happens when you upgrade Resharper/Visual Studio to the newest version. Sometimes accepted answer doesn't help.
As a temporary solution before official fix you can set all *.ts
files to be ignored by Resharper.
Resharper -> Options -> Code Editing -> Third-party Code -> Add file mask for *.ts files
. Then restart Visual Studio.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With