metro icon indicating copy to clipboard operation
metro copied to clipboard

Metro bundler fails when useWatchman is false

Open daniel-azu opened this issue 1 year ago • 1 comments

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
    }
}

daniel-azu avatar Sep 15 '22 10:09 daniel-azu

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?

robhogan avatar Sep 22 '22 14:09 robhogan

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.

robhogan avatar Oct 03 '22 10:10 robhogan