1

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]

enter image description here

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.