TypeScript and React problem

Completed

Hi, 

I'm using ReactJS with TypeScript.

Tried to edit some code with Visual Studio and latest Resharper plugin results with 'Cannot resolve...'  and 'Could not find symbol...' problems.

Project has tslint.json and tsconfig.json configurations properly prepared. Everything compiles and no errors in Visual Studio Code or Visual Studio without Resharper.

Do I need to make some more Resharper configuration or it just doesn't support React with TypeScript?

There are required imports on the top of file, as I said everything compiles and works fine in other editors.

3 comments
Comment actions Permalink

Hello!

 

Thank you for the feedback.

Could you please provide some demo solution introducing the issue? It will be highly appreciated.

Thank you.

0
Comment actions Permalink

Hi,

See: https://github.com/micnyk/resharper-problem-sample

This is the simplest React application created with crate-react-app and ejected. React app makes build on .NET pre-build event, so you can just run Start button to open website.

I know that it is not standard configuration, is it the problem?

But of course it is valid configuration so Resharper should work fine for this.

On the latest stable version of Resharper with JS/TS language support enabled, the simplest ReactApp/src/App.tsx component has problems.

 

0
Comment actions Permalink

Hello!

 

Thank you for the provided info.

I've filed correspondent issue - https://youtrack.jetbrains.com/issue/RSRP-468051

Please feel free to comment or vote for it.

Thank you.

0

Please sign in to leave a comment.