Failed to construct transformer: DuplicateError: Duplicated files or mocks. Please check the console for more info
at setModule (/Users/wangfaguo/Desktop/project/AwesomeProject/node_modules/metro-file-map/src/index.js:553:17)
at workerReply (/Users/wangfaguo/Desktop/project/AwesomeProject/node_modules/metro-file-map/src/index.js:624:9)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 197)
at async /Users/wangfaguo/Desktop/project/AwesomeProject/node_modules/metro-file-map/src/index.js:395:22 {
mockPath1: 'nodejs-assets/nodejs-project/package.json',
mockPath2: 'android/build/nodejs-assets/nodejs-project/package.json'
}
error Duplicated files or mocks. Please check the console for more info.
Error: Duplicated files or mocks. Please check the console for more info
when there is a file “package. json” in directory nodejs-project,i got this error.
metro-file-map: Haste module naming collision: sample-node-project The following files share their name; please adjust your hasteImpl:
Failed to construct transformer: DuplicateError: Duplicated files or mocks. Please check the console for more info at setModule (/Users/wangfaguo/Desktop/project/AwesomeProject/node_modules/metro-file-map/src/index.js:553:17) at workerReply (/Users/wangfaguo/Desktop/project/AwesomeProject/node_modules/metro-file-map/src/index.js:624:9) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Promise.all (index 197) at async /Users/wangfaguo/Desktop/project/AwesomeProject/node_modules/metro-file-map/src/index.js:395:22 { mockPath1: 'nodejs-assets/nodejs-project/package.json', mockPath2: 'android/build/nodejs-assets/nodejs-project/package.json' } error Duplicated files or mocks. Please check the console for more info. Error: Duplicated files or mocks. Please check the console for more info