The core-js error is usually caused by an update or change in the current core-js version. A quick fix is usually to change the core-js version in package.json to the latest which is @3.15.2 or whichever is right now.
quick fixes you can do
- copy the code in this github repo and paste in the file directory in node modules.
If the error still persists
- run npm clear cache. Add --force add the end if necessary.
- Close all IDE instances if any error still persists.
- run npm i core-js@3.15.2
Hope this helps.
Top comments (0)