-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Cannot find module 'metro/src/blacklist' #721
Comments
Based on this comment facebook/react-native#20799 (comment) I updated line 4 in rn-cli.config.js from |
Thank you for the comment @chidinmae . I tried the same solution from facebook/react-native/issues/21093 but the following warning appears in my terminal window Starting React Native Packager...
● Validation Warning:
Unknown option "getProjectRoots" with value getProjectRoots() {
return getRoots();
} was found.
This is probably a typing mistake. Fixing it will remove this message.
● Validation Warning:
Unknown option "getBlacklistRE" with value getBlacklistRE() {
return blacklist([
]);
} was found.
This is probably a typing mistake. Fixing it will remove this message.
● Validation Warning:
Unknown option "getAssetExts" with value getAssetExts() {
return ['obj', 'mtl'];
} was found.
This is probably a typing mistake. Fixing it will remove this message.
● Validation Warning:
Unknown option "getPlatforms" with value getPlatforms() {
return ['vr'];
} was found.
This is probably a typing mistake. Fixing it will remove this message.
● Validation Warning:
Unknown option "getProvidesModuleNodeModules" with value getProvidesModuleNodeModules() {
return ['react-native', 'react-360'];
} was found.
This is probably a typing mistake. Fixing it will remove this message. and shows only a blank page in my browser with the following errors in the console.
|
Not sure about this one! The error I got after fixing the rn-cli config was related to watchman and fixed by running |
Not running |
I found a solution. If you're using react native >= 0.59 change your file name Then change your code, for example:
To:
Following the documentation from metro. |
Having the same issue:
|
THis resolved my issue too |
Will close this issue since it is solved |
React 360 Command Line Interface
Version 1.1.0
npm -v
6.9.0
The following error appears when doing "npm start"
The text was updated successfully, but these errors were encountered: