I got the below error when deploying the code in cloud in local (windows) its working normally. When deploying in cloud I am getting following error:
** Uncaught Error: Cannot find module '/React/node_modules/react-refresh/runtime.js'**
I tried deleting node modules and package-lock.Json file and running npm intall -f ** Still receiving same error. When i checked ** npm ls react-refresh it showed
├─┬ @pmmmwh/[email protected]
│ └── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ ├─┬ @react-native/[email protected]
│ │ └─┬ @react-native/[email protected]
│ │ └─┬ @react-native/[email protected]
│ │ └── [email protected] deduped
│ └── [email protected] deduped
└─┬ [email protected]
└── [email protected]
i tried npm dedupe -f still no change please help.
I am looking for a solution to deploy the code in google cloud but receiving error , but locally it was working normally. I tried deleting node modules package-lock file and re installing and npm dedupe -f still its not working.