Resharper not recognizing Javascript Promise.resolve()

R# is saying "Symbol 'resolve' cannot be properly resolved, probably it is located in inaccessible module"


Code runs fine, it's just R# saying there's an error here when there isn't one.  Note that I am only seeing this for Promise.resolve(...) and Promise.reject(...)


Temporary workaround:
// ReSharper disable once TsResolvedFromInaccessibleModule

3 comments
Comment actions Permalink

Hello,

 

thank you for the feedback.

Unfortunately, I couldn't reproduce the problem from scratch. Could you please specify your ReSharper version?

If you could provide some stripped solution demonstrating the issue we'd be grateful. You can do it privately via "Submit a request" form.

Thank you.

 

0
Comment actions Permalink

I installed an R# update today.  Here's the version info:

I was hoping the update would fix it, but alas, no it did not.

It hadn't always been this way.  It started after an R# update a month or so back.

I don't know if it makes a difference, but I'm coding in TypeScript using Angular.  I'll try and see if I can create a stripped down project when I get a chance.

0
Comment actions Permalink

Hello,

 

If you get a chance you provide a sample or solution or at least code sample we'd be grateful.

I had no luck in reproducing the problem in a newly created Angular solution.

Thank you.

0

Please sign in to leave a comment.