Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'react-native/packager/blacklist' #15

Open
lattice0 opened this issue Mar 19, 2018 · 4 comments
Open

Cannot find module 'react-native/packager/blacklist' #15

lattice0 opened this issue Mar 19, 2018 · 4 comments

Comments

@lattice0
Copy link

lattice0 commented Mar 19, 2018

I see in your example that you use android or ios with gradle. I'm using expo for now but of course I'll migrate to gradle. For now, I copied your transformer.js, rn-cli.config, global.js and did npm3 install node-libs-browser. Here's the error I'm having when I do npm start

***ERROR STARTING PACKAGER***
Starting React Native packager...

module.js:545
    throw err;
    ^

Error: Cannot find module 'react-native/packager/blacklist'
    at Function.Module._resolveFilename (module.js:543:15)
    at Function.Module._load (module.js:470:25)
    at Module.require (module.js:593:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/project/src/jscam/rn-cli.config.js:3:19)
    at Module._compile (module.js:649:30)
    at Module._extensions..js (module.js:660:10)
    at Object.require.extensions.(anonymous function) [as .js] (/home/project/src/jscam/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:501:12)
@lattice0
Copy link
Author

I did the "eject" and in the 'native' way I can run the app if I rename rn-cli.config.js to something else, but if I name it to what it's supposed to be, then I get:

ERROR ignorePattern is not a function

on Metro, and the app won't launch (red screen with errors)

@JerellDR
Copy link

JerellDR commented Oct 4, 2018

For those who are still looking for a solution to this.

facebook/react-native#7271

@Vanclief
Copy link

TLDR:

const blacklist = require('metro/src/blacklist');

@GuillaumeMunsch
Copy link

If you have react-native >= 0.57 check this:

facebook/react-native#21093 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants