metro
metro copied to clipboard
Metro bundler fails when useWatchman is false
Getting the following error:
error Invalid platform "ios" selected.
error Bundling failed.
I put it under config file in the following structure:
{
"resolver": {
"useWatchman": false
}
}
Hi @daniel-azu - it looks like you're probably overriding the resolver.platforms
option somehow.
Can I check that you're adding the option within metro.config.js
at the root of your React Native(?) project, and if so could you post your complete metro.config.js
please, along with the output of npx react-native info
?
I can't reproduce this as-is so I'm closing, but please reopen or file a new issue if you can share a repro case.