We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This error is coming after exporting RN components and restarting the simulator when .bit folder is in the root of the project.
.bit
We can solve this issue by adding a Regex to the default blacklist in metro.config.js file that will ignore .bit folder:
metro.config.js
/** * Metro configuration for React Native * https://github.com/facebook/react-native * * @format */ const blacklist = require('metro-config/src/defaults/blacklist'); module.exports = { transformer: { getTransformOptions: async () => ({ transform: { experimentalImportSupport: false, inlineRequires: false, }, }), }, resolver: { blacklistRE: blacklist([/.bit\/.*/]), }, };
The text was updated successfully, but these errors were encountered:
I wrote in the README of the compiler on how to solve this issue. https://github.com/teambit/envs/tree/master/packages/react-native#metro-has-encountered-an-error-while-trying-to-resolve-module-react-native
Sorry, something went wrong.
JoshK2
No branches or pull requests
Describe the bug
This error is coming after exporting RN components and restarting the simulator when
.bit
folder is in the root of the project.We can solve this issue by adding a Regex to the default blacklist in
metro.config.js
file that will ignore.bit
folder:Specifications
The text was updated successfully, but these errors were encountered: