Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6208

Wrong import error with TS/JS mixing and visual studio code

$
0
0

I'm working on a react native app with both JS and TS. When I have different configurations according to the OS, I'm creating two files.

One for iOS, one for Android.

enter image description here

It works pretty well and handle things exactly the way I want, but on visual studio code when I import something from the 'firebase' file, from a typescript file I get this error

enter image description here

If I switch the .ts file in question to a .js the errors doesn't appear so it must come from the typescript configuration on Visual Studio, but don't find where..

Edit: I precise that on the compilation part, it works without error. My app is running well, it's just a visual studio code wrong error.

Anyone has got a similar problem?

Thank you


Viewing all articles
Browse latest Browse all 6208

Trending Articles