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

fix: Cannot find module 'metro-config/src/defaults/blacklist' in the example #750

Closed
wants to merge 1 commit into from

Conversation

Albert-Gao
Copy link

image

…n example

error Cannot find module 'metro-config/src/defaults/blacklist'
Require stack:
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/metro.config.js
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/node_modules/import-fresh/index.js
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/node_modules/cosmiconfig/dist/loaders.js
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/node_modules/cosmiconfig/dist/createExplorer.js
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/node_modules/cosmiconfig/dist/index.js
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/node_modules/@react-native-community/cli/build/tools/config/readConfigFromDisk.js
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/node_modules/@react-native-community/cli/build/tools/config/index.js
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/node_modules/@react-native-community/cli/build/commands/install/install.js
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/node_modules/@react-native-community/cli/build/commands/index.js
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/node_modules/@react-native-community/cli/build/index.js
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/node_modules/react-native/cli.js.
Error: Cannot find module 'metro-config/src/defaults/blacklist'
Require stack:
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/metro.config.js
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/node_modules/import-fresh/index.js
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/node_modules/cosmiconfig/dist/loaders.js
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/node_modules/cosmiconfig/dist/createExplorer.js
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/node_modules/cosmiconfig/dist/index.js
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/node_modules/@react-native-community/cli/build/tools/config/readConfigFromDisk.js
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/node_modules/@react-native-community/cli/build/tools/config/index.js
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/node_modules/@react-native-community/cli/build/commands/install/install.js
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/node_modules/@react-native-community/cli/build/commands/index.js
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/node_modules/@react-native-community/cli/build/index.js
- /Users/albertgao/codes/temp/react-native-bottom-sheet/example/node_modules/react-native/cli.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/albertgao/codes/temp/react-native-bottom-sheet/example/metro.config.js:3:19)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
info Run CLI with --verbose flag for more details.
@andrejguran
Copy link

had the same issue and this resolved it 👍

@gorhom
Copy link
Owner

gorhom commented Dec 28, 2021

@Albert-Gao thanks for submitting this PR, unfortunately there was already a PR to resolve it but i didn't merge it #649.

@gorhom gorhom closed this Dec 28, 2021
@Albert-Gao Albert-Gao deleted the patch-1 branch December 29, 2021 01:23
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

Successfully merging this pull request may close these issues.

3 participants