Skip to content

jest-haste-map: Haste module naming collision: React Native error – How to fix ?

This error occurs when you have multiple config files sharing same name. For me this error occured when I had two package.json files, one in the current directory and one outside the directory, by mistake of course.

  The following files share their name; please adjust your hasteImpl:
    * <rootDir>/workspace/package.json
    * <rootDir>/package.json

To fix this error I just had to remove the irrelevant one.

See also  The Hurdle Race - Hackerrank Challenge - Java Solution

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.