ReSharper TypeScript - 'import' doesn't properly find 'export { xxx as default }'

Answered

Hi,

The import below compiles correctly, but as you can see, SelectionArea 1) shows up never used in the import statement and 2) appears as unresolved when used in code.

Looking at the types definitions from @simonwep/selection-js, I notice it's exported using the 'export { SelectionArea as default }' syntax:

I've also tried importing it like so, with the same error:

Is this a bug with ReSharper, or is there a way to resolve this?

I'm using:

ReSharper 2021.1.3

Visual Studio 2017 (15.9.34)

TypeScript 3.7.5

Thanks,

-Justin

1 comment
Comment actions Permalink

Hello Jkraft, thanks for the report.

I reproduced the problem and created a corresponding record on our bug tracker: RSRP-485547. Please comment or vote for it to get the notifications about status changes. Thank you!

0

Please sign in to leave a comment.