-
Notifications
You must be signed in to change notification settings - Fork 825
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
jest-haste-map: Haste module naming collision: -> namefunction <- #3295
Comments
Amplify CLI puts all the backend resources in a |
" so what is the solution for this?? " |
@radhikathakkar this worked for me.
found from: amazon-archives/awsmobile-cli#172 |
In my case, I'm using ReactNative CLI. Updating the
I'm not using Expo, but seems like if you are using Expo you should update/create |
For React Native 0.6x configure the blacklist in metro.config.js instead of rn-cli.config.js, as per this answer
|
@miekassu I have tried the expo solution but now get this error when I try to run the app. Any idea?
|
@PatidarParth after Expo 38 SDK update I had same error.
|
@miekassu Do you call the rn-cli.config.js anywhere? For example, do I need to include it in the projectOpts within the app.json like below?
|
@PatidarParth file is just included in root. Metro picks it up automatically. Good luck! |
Hello, i tried to add the blacklist as mentionned below,
but it seems that i do not have "blacklist.js" file in my metro-config/src/defaults/ : `error Cannot find module 'metro-config/src/defaults/blacklist'
I checked as i found on the the net that is could be somewhere else, but it seems that there is no "blacklist.js" file in my project at all ... Can someone help me ? |
@JosephVasse in newer versions of const exclusionList = require('metro-config/src/defaults/exclusionList');
module.exports = {
resolver: {
blacklistRE: exclusionList([/#current-cloud-backend\/.*/]),
},
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}),
},
}; I also had to manually install |
Yes, i finally figured it out. Thank you for replying though |
After updating to Expo SDK41 this issue came back. |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
To Reproduce
The text was updated successfully, but these errors were encountered: