Error: Duplicated files or mocks. Please check the console for more info

dear expo,

I am using aws amplify with Lambda function and get this error

Logs for your project will appear below. Press Ctrl+C to exit.
jest-haste-map: Haste module naming collision: RezerviniFunction
 The following files share their name; please adjust your hasteImpl:
   * <rootDir>\amplify\#current-cloud-backend\function\RezerviniFunction\src\package.json
   * <rootDir>\amplify\backend\function\RezerviniFunction\src\package.json

Failed to construct transformer:  DuplicateError: Duplicated files or mocks. Please check the console for more info
   at setModule (C:\Users\medna\Desktop\Rezervini-aws\node_modules\jest-haste-map\build\index.js:620:17)
   at workerReply (C:\Users\medna\Desktop\Rezervini-aws\node_modules\jest-haste-map\build\index.js:691:9)
   at processTicksAndRejections (node:internal/process/task_queues:94:5)
   at async Promise.all (index 43) {
 mockPath1: 'amplify\\#current-cloud-backend\\function\\RezerviniFunction\\src\\package.json',
 mockPath2: 'amplify\\backend\\function\\RezerviniFunction\\src\\package.json'
}
info Launching Dev Tools...
Error: Duplicated files or mocks. Please check the console for more info
   at setModule (C:\Users\medna\Desktop\Rezervini-aws\node_modules\jest-haste-map\build\index.js:620:17)
   at workerReply (C:\Users\medna\Desktop\Rezervini-aws\node_modules\jest-haste-map\build\index.js:691:9)
   at processTicksAndRejections (node:internal/process/task_queues:94:5)
   at async Promise.all (index 43)

please I need a help

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.