Skip to content

Instantly share code, notes, and snippets.

@sawaYch
Last active December 22, 2020 03:45
Show Gist options
  • Save sawaYch/8c5e3d1dca6f402932f9ba9f01aed0a3 to your computer and use it in GitHub Desktop.
Save sawaYch/8c5e3d1dca6f402932f9ba9f01aed0a3 to your computer and use it in GitHub Desktop.
npm install react native, meter config regex-fuckup on Windows. here is the link to workaround.

expo/expo-cli#1074

Got this issue today on windows, but don't need to downgrade node, just as discussed on stackoverflow just need to change some hashes on your project:

\node_modules\metro-config\src\defaults\blacklist.js
var sharedBlacklist = [
  /node_modules[/\\]react[/\\]dist[/\\].*/,
  /website\/node_modules\/.*/,
  /heapCapture\/bundle\.js/,
  /.*\/__tests__\/.*/
];

change to:

var sharedBlacklist = [
  /node_modules[\/\\]react[\/\\]dist[\/\\].*/,
  /website\/node_modules\/.*/,
  /heapCapture\/bundle\.js/,
  /.*\/__tests__\/.*/
];

Hope it works like worked for me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment