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

Why do i get typescript unexpected token errors when compiling to web for expo, but not when compiling to android?

$
0
0

I've been trying to get a webrtc project made for android to work for the web.

The original project is written in react-native.

When i tried to use expo to compile to web, it gave me errors about unexpected token, not knowing what type was, and then what ?? was. These are things that are in the main code base, and they were failing in imported packages, ONLY when compiling to web.

I suppose I want to understand better why compiling the javascript for web, would be any different from compiling the javascript for android/ios... the loaders should be the same shouldn't they? At least for interpretting the javascript.


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>