Module not found: Error: Can't resolve 'core-js/es6'

后端 未结 9 1390
轻奢々
轻奢々 2020-12-12 14:49

I\'ve got a problem with my build process in relation to my React app.

I always get the following error:

Module not found: Error: Can\'t resolve \'co

9条回答
  •  醉酒成梦
    2020-12-12 15:15

    Sure, I had a similar issue and a simple

    npm uninstall @babel/polyfill --save &&
    npm install @babel/polyfill --save
    

    did the trick for me.

    However, usage of @babel/polyfill is deprecated (according to this comment) so only try this if you think you have older packages installed or if all else fails.

提交回复
热议问题