“Uncaught Error: React Refresh runtime should not be included in the production bundle.”

Issue

This Content is from Stack Overflow. Question asked by Tikka

I am trying to upload my app using the google cloud engine (deployment). The app works fine on the local net.
I have a very persistent problem with this response:
“Uncaught Error: React Refresh runtime should not be included in the production bundle.”
pic: from browser console

Here is the script part of my package.json
pic: package.json script

I have tried adding e.g. FAST_REFRESH=false to .env and adding that FAST_REFRESH=false to package.json to no avail.

I am running out of ideas.. would you know what might work?



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?