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

后端 未结 9 1321
轻奢々
轻奢々 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:24

    The imports have changed for core-js version 3.0.1 - for example

    import 'core-js/es6/array'; and import 'core-js/es7/array';

    can now be provided simply by the following

    import 'core-js/es/array';

    if you would prefer not to bring in the whole of core-js

提交回复
热议问题