Created
January 2, 2020 19:10
-
-
Save Asinox/de270130cb17ba9bfa9668c7c16a5fe4 to your computer and use it in GitHub Desktop.
Fix React Native: Unable to load script.Make sure you are either running a Metro server or that your bundle 'index.android.bundle' is packaged correctly for release
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Edit node_modules/metro-config/src/defaults/blacklist.js | |
Change sharedBlacklist to: | |
var sharedBlacklist = [ | |
/node_modules[\/\\]react[\/\\]dist[\/\\].*/, | |
/website\/node_modules\/.*/, | |
/heapCapture\/bundle\.js/, | |
/.*\/__tests__\/.*/ | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment