A cross-origin error was thrown. React doesn‘t have access to the actual error object in development

created at 08-20-2021 views: 4

error

A cross-origin error was thrown. React doesn’t have access to the actual error object in development

solution

I ran into this bug when I ran the react project in the morning. I saw the reason on the Internet and found that there was a problem with the package, which caused me to delete the package several times and I didn’t solve it. 

Finally, after deleting the package, use the instruction to clear the cache of the package. The package downloaded with the yarn instruction solves this problem.

created at:08-20-2021
edited at: 08-20-2021: