-
Notifications
You must be signed in to change notification settings - Fork 35
Error: jest-haste-map: Haste module naming collision: #190
Comments
Same issue here. Do you have an update? |
Did you try to use the solution by nara posted in #172? |
i was facing this issue because i instaall package image slider having react-native in it try to unlink plugin when you start facing this issue. |
@UnleashedMind I tried #172 and it did not help me as it requires the following code to run |
After publishing this. I did the below setup and it worked.
|
it's work for me |
This error is caused by
hasteImpl
returning the same name for different filesI know this has been looked at before, but I just cannot get a fix working and its stopping me from proceeding using AWS.
has anyone had this problem and found a work around solution?
Loading dependency graph...(node:55309) UnhandledPromiseRejectionWarning: Error: jest-haste-map: Haste module naming collision:
Duplicate module name: pulseTrailFunction
Paths: /Users/Pauly/Documents/webs2.0/projects/pulse/pulse_v3/amplify/backend/function/pulseTrailFunction/src/package.json collides with /Users/Pauly/Documents/webs2.0/projects/pulse/pulse_v3/amplify/#current-cloud-backend/function/pulseTrailFunction/src/package.json
This error is caused by
hasteImpl
returning the same name for different files.at setModule (/Users/Pauly/Documents/webs2.0/projects/pulse/pulse_v3/node_modules/metro/node_modules/jest-haste-map/build/index.js:551:17)
at workerReply (/Users/Pauly/Documents/webs2.0/projects/pulse/pulse_v3/node_modules/metro/node_modules/jest-haste-map/build/index.js:613:9)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:55309) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:55309) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:55309) UnhandledPromiseRejectionWarning: Error: jest-haste-map: Haste module naming collision:
Duplicate module name: pulseTrailFunction
Paths: /Users/Pauly/Documents/webs2.0/projects/pulse/pulse_v3/amplify/backend/function/pulseTrailFunction/src/package.json collides with /Users/Pauly/Documents/webs2.0/projects/pulse/pulse_v3/amplify/#current-cloud-backend/function/pulseTrailFunction/src/package.json
This error is caused by
hasteImpl
returning the same name for different files.at setModule (/Users/Pauly/Documents/webs2.0/projects/pulse/pulse_v3/node_modules/metro/node_modules/jest-haste-map/build/index.js:551:17)
at workerReply (/Users/Pauly/Documents/webs2.0/projects/pulse/pulse_v3/node_modules/metro/node_modules/jest-haste-map/build/index.js:613:9)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:55309) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
The text was updated successfully, but these errors were encountered: