How to fix this error on running react-native on android
Failed to construct transformer: DuplicateError: Duplicated files or mocks. Please check the console for more info
at setModule (/home/user/HelloWorld/node_modules/jest-haste-map/build/index.js:620:17)
at workerReply (/home/user/HelloWorld/node_modules/jest-haste-map/build/index.js:691:9)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 16960) {
mockPath1: 'node_modules/react-native/template/package.json',
mockPath2: 'package.json'
}