Quantcast
Viewing all articles
Browse latest Browse all 6400

React Native Expo Start ignores typescript errors

I'm using Expo with Typescript, and when running with expo start (and potentially building), it ignores my TypeScript errors.

VS Code will still show an error, but I can reload the App and run it on my phone in Expo Go (potentially leading to runtime errors).

How can I change this behavior, so that compilation errors result in an error when I try to reload/run/build the app?

My tsconfig looks like this:

{"compilerOptions": {"strict": true,"noUncheckedIndexedAccess": true,"noEmitOnError": true  },"extends": "expo/tsconfig.base"}

(I added noEmitOnError to see if that helped, it doesn't seem to change the behavior either way)


Viewing all articles
Browse latest Browse all 6400

Trending Articles



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