React project starts, console error message: ReferenceError: Cache is not defined
- myself there is no problem with http://localhost:3000/ access
- other people visit my local 172.16.8.16 rel= 3000 ( http://localhost:3000/) reported this error )
the environmental background of the problems and what methods you have tried
-
the background of the environment in which the problem occurs
- react Project
- Visual Studio Editor
- scaffolding webpack configuration provided by react
- runs on Google browser
- there is no problem with the git version the day before yesterday. After more than 10 versions are submitted a day later, they will be packaged, and the subordinate will report the above image error on the server .
- Google typed http://localhost:3000/ to run. Google typed 172.16.8.16rel= 3000 ( Google native address access and deployed to the server address can not be accessed, report the error on the picture.
-
the method you try
- I went back to the git version that did not report an error. When others visited my local computer, there was no problem, but I didn"t find out the reason, but the code version had been submitted a lot, so it was very time-consuming to go back to the version I had a day ago and start all over again.
- reinstall dependencies through the command yarn. Whether other people visit or report an error.
- found this module serviceworker-cache-ployfill did not find the variable Cache, the browser window global does not have this variable
- Baidu and Google searched for error information but couldn"t find the answer.
related codes
A big project. I can"t paste the code. I don"t know where it went wrong. It doesn"t feel like it"s the fault of the logical code, it"s that the relevant dependencies are not found.
what result do you expect? What is the error message actually seen?
can solve this problem, I am in a hurry