Skip to content

Jest shows warning about @providesModule naming collision after upgrade RN from 0.42.0 to 0.43.1 #13364

@xareelee

Description

@xareelee

After upgrading RN from 0.42.0 to 0.43.1, jest shows warning about @providesModule naming collision:

$ jest --no-cache

jest-haste-map: @providesModule naming collision:
  Duplicate module name: babel-generator
  Paths: {path_to_project}/node_modules/react-native/node_modules/babel-register/node_modules/babel-generator/package.json collides with {path_to_project}/node_modules/react-native/node_modules/babel-core/node_modules/babel-core/node_modules/babel-generator/package.json

This warning is caused by a @providesModule declaration with the same name across two different files.
jest-haste-map: @providesModule naming collision:
  Duplicate module name: babel-core
  Paths: {path_to_project}/node_modules/react-native/node_modules/babel-core/package.json collides with {path_to_project}/node_modules/react-native/node_modules/babel-register/node_modules/babel-core/package.json

This warning is caused by a @providesModule declaration with the same name across two different files.
jest-haste-map: @providesModule naming collision:
  Duplicate module name: babel-register
  Paths: {path_to_project}/node_modules/react-native/node_modules/babel-register/package.json collides with {path_to_project}/node_modules/react-native/node_modules/babel-register/node_modules/babel-register/package.json

This warning is caused by a @providesModule declaration with the same name across two different files.
jest-haste-map: @providesModule naming collision:
  Duplicate module name: json5
  Paths: {path_to_project}/node_modules/react-native/node_modules/json5/package.json collides with {path_to_project}/node_modules/react-native/node_modules/babel-register/node_modules/json5/package.json

This warning is caused by a @providesModule declaration with the same name across two different files.
jest-haste-map: @providesModule naming collision:
  Duplicate module name: babel-core
  Paths: {path_to_project}/node_modules/react-native/node_modules/babel-core/node_modules/babel-core/package.json collides with {path_to_project}/node_modules/react-native/node_modules/babel-core/package.json

This warning is caused by a @providesModule declaration with the same name across two different files.
jest-haste-map: @providesModule naming collision:
  Duplicate module name: babel-register
  Paths: {path_to_project}/node_modules/react-native/node_modules/babel-core/node_modules/babel-register/package.json collides with {path_to_project}/node_modules/react-native/node_modules/babel-register/package.json

This warning is caused by a @providesModule declaration with the same name across two different files.
jest-haste-map: @providesModule naming collision:
  Duplicate module name: json5
  Paths: {path_to_project}/node_modules/react-native/node_modules/babel-core/node_modules/json5/package.json collides with {path_to_project}/node_modules/react-native/node_modules/json5/package.json

This warning is caused by a @providesModule declaration with the same name across two different files.

// Start running tests...

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions