Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Avatar doesn't let me use core-js 3.4.4 #181

Closed
goxr3plus opened this issue Nov 27, 2019 · 16 comments · Fixed by #182
Closed

React Avatar doesn't let me use core-js 3.4.4 #181

goxr3plus opened this issue Nov 27, 2019 · 16 comments · Fixed by #182
Assignees
Labels
Milestone

Comments

@goxr3plus
Copy link

goxr3plus commented Nov 27, 2019

Hello :) I found this amazing library today by the way.

I see in your package json you have corejs-2.5.7 . In our new project we are using latest Babel7 and corejs3.4.4 and we are getting the below errors :

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/es7.symbol.async-iterator' in 'C:\Atlassian\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 7:0-51
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/web.dom.iterable' in 'C:\Atlassian\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 9:0-42
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/web.dom.iterable' in 'C:\Atlassian\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 6:0-42
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/context.js
Module not found: Error: Can't resolve 'core-js/modules/web.dom.iterable' in 'C:\Atlassian\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/context.js 5:0-42
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

Can you please update corejs to version 3 or give us a workaround :) . Thank you @JorgenEvens

@goxr3plus goxr3plus changed the title React Avatar doesn't let me use core-js 3 React Avatar doesn't let me use core-js 3.4.4 Nov 27, 2019
@JorgenEvens
Copy link
Member

Hi @goxr3plus,

Would you be able to build a minimal reproduction? I'm going to investigate whether we can simply upgrade our core-js version, but this should generally not be required as the node module system would/should have installed core-js local to react-avatar on conflict.

In the meantime, could you maybe run npm ls core-js for me to get an idea of your module hierarchy?

@JorgenEvens JorgenEvens self-assigned this Nov 28, 2019
@JorgenEvens JorgenEvens added bug incomplete Needs more info to resolve labels Nov 28, 2019
@goxr3plus
Copy link
Author

Yes i will send you give me some time :)

@mastilver
Copy link

mastilver commented Dec 9, 2019

I had the same issue

npm ls core-js retuned:

└─┬ [email protected]
  └── UNMET DEPENDENCY core-js@^2.5.7

I deleted node_modules and package-lock.json, then ran npm i, now I get:

@JorgenEvens
Copy link
Member

JorgenEvens commented Dec 9, 2019

Hi @mastilver,

Thanks for the update! Did that fix the issue for you?

@mastilver
Copy link

@JorgenEvens Yep, everything is working fine now, thank you

@JorgenEvens
Copy link
Member

Great! I'll see if we can't get our libraries up to modern standards, but it's good to have a workaround.

@amcdnl
Copy link

amcdnl commented Dec 24, 2019

Getting the same thing - I installed core@2 as a dev depedency and that fixed it.

@JorgenEvens
Copy link
Member

I've updated all react-avatar dependencies, of which core-js was one in release v3.8.0 that has just been published 🎉 !

@JorgenEvens JorgenEvens removed the incomplete Needs more info to resolve label Dec 27, 2019
@goxr3plus
Copy link
Author

goxr3plus commented Feb 19, 2020

I am still getting these errors with Babel 6 :) @JorgenEvens

Error messages
ERROR in ./node_modules/react-avatar/es/sources/AvatarRedirect.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.concat' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es\sources'
 @ ./node_modules/react-avatar/es/sources/AvatarRedirect.js 3:0-41
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/sources/Github.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.concat' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es\sources'
 @ ./node_modules/react-avatar/es/sources/Github.js 3:0-41
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/sources/Facebook.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.concat' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es\sources'
 @ ./node_modules/react-avatar/es/sources/Facebook.js 3:0-41
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/sources/Gravatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.concat' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es\sources'
 @ ./node_modules/react-avatar/es/sources/Gravatar.js 3:0-41
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/cache.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.filter' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/cache.js 1:0-41
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.filter' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 6:0-41
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.filter' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 6:0-41
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.for-each' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 7:0-43
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/context.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.for-each' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/context.js 4:0-43
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.for-each' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 7:0-43
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.from' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 8:0-39
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.index-of' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 9:0-43
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.iterator' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 10:0-43
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/context.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.iterator' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/context.js 5:0-43
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.iterator' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 8:0-43
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.join' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 11:0-39
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.join' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 9:0-39
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.map' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 12:0-38
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.reduce' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 10:0-41
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.reduce' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 13:0-41
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/cache.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.slice' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/cache.js 2:0-40
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.slice' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 14:0-40
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/cache.js
Module not found: Error: Can't resolve 'core-js/modules/es.array.some' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/cache.js 3:0-39
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/cache.js
Module not found: Error: Can't resolve 'core-js/modules/es.date.to-string' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/cache.js 4:0-43
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/es.date.to-string' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 15:0-43
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.function.name' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 11:0-42
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/sources/Value.js
Module not found: Error: Can't resolve 'core-js/modules/es.function.name' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es\sources'
 @ ./node_modules/react-avatar/es/sources/Value.js 3:0-42
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.assign' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 12:0-42
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/context.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.assign' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/context.js 6:0-42
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.define-properties' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 13:0-53
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.define-property' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 14:0-51
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/internal-state.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.define-property' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/internal-state.js 1:0-51
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/cache.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.define-property' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/cache.js 5:0-51
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/context.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.define-property' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/context.js 7:0-51
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/sources/AvatarRedirect.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.define-property' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es\sources'
 @ ./node_modules/react-avatar/es/sources/AvatarRedirect.js 4:0-51
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/sources/Icon.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.define-property' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es\sources'
 @ ./node_modules/react-avatar/es/sources/Icon.js 3:0-51
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/sources/Src.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.define-property' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es\sources'
 @ ./node_modules/react-avatar/es/sources/Src.js 3:0-51
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/sources/Value.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.define-property' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es\sources'
 @ ./node_modules/react-avatar/es/sources/Value.js 4:0-51
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/sources/Skype.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.define-property' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es\sources'
 @ ./node_modules/react-avatar/es/sources/Skype.js 3:0-51
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/sources/Github.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.define-property' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es\sources'
 @ ./node_modules/react-avatar/es/sources/Github.js 4:0-51
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/sources/Facebook.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.define-property' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es\sources'
 @ ./node_modules/react-avatar/es/sources/Facebook.js 4:0-51
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/sources/Gravatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.define-property' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es\sources'
 @ ./node_modules/react-avatar/es/sources/Gravatar.js 4:0-51
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.get-own-property-descriptor' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 15:0-63
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.get-own-property-descriptors' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 16:0-64
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.get-prototype-of' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 17:0-52
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/context.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.get-prototype-of' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/context.js 8:0-52
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.keys' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 18:0-40
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/context.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.keys' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/context.js 9:0-40
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.set-prototype-of' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 19:0-52
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/context.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.set-prototype-of' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/context.js 10:0-52
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.to-string' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 20:0-45
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.to-string' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 16:0-45
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/context.js
Module not found: Error: Can't resolve 'core-js/modules/es.object.to-string' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/context.js 11:0-45
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/es.parse-float' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 17:0-40
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.regexp.exec' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 21:0-40
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/es.regexp.exec' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 18:0-40
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/sources/AvatarRedirect.js
Module not found: Error: Can't resolve 'core-js/modules/es.regexp.exec' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es\sources'
 @ ./node_modules/react-avatar/es/sources/AvatarRedirect.js 5:0-40
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/es.regexp.to-string' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 19:0-45
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.string.iterator' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 22:0-44
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/es.string.iterator' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 20:0-44
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/context.js
Module not found: Error: Can't resolve 'core-js/modules/es.string.iterator' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/context.js 12:0-44
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.string.replace' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 23:0-43
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/sources/AvatarRedirect.js
Module not found: Error: Can't resolve 'core-js/modules/es.string.replace' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es\sources'
 @ ./node_modules/react-avatar/es/sources/AvatarRedirect.js 6:0-43
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/es.string.split' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 21:0-41
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.symbol' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 3:0-35
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/context.js
Module not found: Error: Can't resolve 'core-js/modules/es.symbol' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/context.js 1:0-35
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/es.symbol' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 3:0-35
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/es.symbol.description' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 4:0-47
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/context.js
Module not found: Error: Can't resolve 'core-js/modules/es.symbol.description' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/context.js 2:0-47
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.symbol.description' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 4:0-47
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/es.symbol.iterator' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 5:0-44
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/context.js
Module not found: Error: Can't resolve 'core-js/modules/es.symbol.iterator' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/context.js 3:0-44
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/es.symbol.iterator' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 5:0-44
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/web.dom-collections.for-each' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 24:0-54
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/web.dom-collections.for-each' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 22:0-54
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/context.js
Module not found: Error: Can't resolve 'core-js/modules/web.dom-collections.for-each' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/context.js 13:0-54
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/avatar.js
Module not found: Error: Can't resolve 'core-js/modules/web.dom-collections.iterator' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/avatar.js 25:0-54
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/utils.js
Module not found: Error: Can't resolve 'core-js/modules/web.dom-collections.iterator' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/utils.js 23:0-54
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

ERROR in ./node_modules/react-avatar/es/context.js
Module not found: Error: Can't resolve 'core-js/modules/web.dom-collections.iterator' in 'C:\Stash_Intralot\retailer_portal\node_modules\react-avatar\es'
 @ ./node_modules/react-avatar/es/context.js 14:0-54
 @ ./node_modules/react-avatar/es/avatar.js
 @ ./node_modules/react-avatar/es/index.js
 @ ./src/client/components/AvatarControl/index.jsx
 @ ./src/client/components/index.js
 @ ./src/client/routes.jsx
 @ ./src/client/index.jsx
 @ multi webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/client/index.jsx

@goxr3plus
Copy link
Author

goxr3plus commented Feb 19, 2020

Also i run npm ls core-js and getting the below :) @JorgenEvens

+-- babel-polyfill@6.26.0
| `-- core-js@2.6.11 
+-- babel-register@6.26.0
| `-- core-js@2.6.11  deduped
+-- babel-runtime@6.26.0
| `-- core-js@2.6.11  deduped
+-- react-avatar@3.9.1
| `-- core-js@3.6.4
+-- react-bootstrap@0.33.1
| `-- @babel/runtime-corejs2@7.8.4
|   `-- core-js@2.6.11  deduped
+-- react-datetime@2.16.3
| `-- create-react-class@15.6.3
|   `-- fbjs@0.8.17
|     `-- core-js@1.2.7
`-- react-tag-input@6.4.2
  `-- core-js@2.6.11  deduped

@JorgenEvens
Copy link
Member

Hi @goxr3plus,

Did your application start out as a gatsby app by any chance? Your issue seems very similar to that reported by some users using gatsby, in which case it was an issue with the webpack-config that was being used.

As you can see here, the version of core-js that is being installed by react-avatar does in fact include the files your build is reporting missing. I'm guessing this is going to come down to a webpack configuration issue and would need more info to help you solve this.

Would you be able to share your webpack config here?

@goxr3plus
Copy link
Author

goxr3plus commented Feb 19, 2020

@JorgenEvens :) Sharing:

1)Did your application start out as a gatsby app by any chance? Your issue seems very similar to that reported by some users using gatsby, in which case it was an issue with the webpack-config that was being used.

NOPE

2)Would you be able to share your webpack config here?

Webpack config
const webpack = require('webpack')
const path = require('path')
const autoprefixer = require('autoprefixer')
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin

const nodeEnv = process.env.NODE_ENV || 'development'
const isProduction = nodeEnv === 'production'
const sourcePath = path.join(__dirname, './src/client')
const buildPath = path.join(__dirname, './src/server/public')

const devServerPort = 3000
const publicServePath = isProduction ? '/public/' : `http://localhost:${devServerPort}/public/`

const plugins = [
	new webpack.LoaderOptionsPlugin({
		options: {
			postcss: [
				autoprefixer({
					// browsers: ['last 3 version', 'ie >= 10']
				})
			],
			context: sourcePath
		}
	}),
	new webpack.NamedModulesPlugin(),
	new webpack.HotModuleReplacementPlugin(),
	new CleanWebpackPlugin(),
	new BundleAnalyzerPlugin()
]

// Common rules
const rules = [
	{
		test: /\.(js|jsx)$/,
		use: {
			loader: 'babel-loader',
			options: {
				presets: ['react', ['env', { targets: { browsers: ['last 2 versions'] } }]],
				plugins: [
					'transform-object-rest-spread',
					'transform-class-properties',
					'syntax-decorators',
					'transform-decorators-legacy'
				]
			}
		},
		exclude: /node_modules/
	},
	{
		test: /\.(ttf|otf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/,
		loader: 'url-loader?name=media/fonts/[name].[ext]'
	},
	{
		test: /\.(png|jpe?g|gif|ico)$/,
		loader: 'url-loader?name=assets/[name].[ext]'
	},
	{
		test: /\.(scss|css)$/,
		use: [
			{ loader: 'style-loader' },
			{ loader: 'css-loader', options: { sourceMap: true } },
			{ loader: 'sass-loader', options: { sourceMap: true } }
		]
	}
]

module.exports = {
	mode: 'development',
	devtool: 'cheap-module-eval-source-map',
	target: 'web',
	entry: {
		bundle: [
			`webpack-dev-server/client?http://localhost:${devServerPort}`,
			'webpack/hot/dev-server',
			path.resolve(__dirname, 'src/client/index.jsx')
		]
	},
	output: {
		path: buildPath,
		filename: '[name].js',
		publicPath: publicServePath
	},
	optimization: {
		runtimeChunk: true,
		splitChunks: {
			cacheGroups: {
				vendor: {
					test: /[\\/]node_modules[\\/]/,
					chunks: 'initial',
					name: 'vendor',
					priority: 10,
					enforce: true
				}
			}
		}
	},
	resolve: {
		alias: {
			'react-dom': '@hot-loader/react-dom',
			t: path.resolve(__dirname, 'src/client/lib/translations.js')
		},
		extensions: ['.webpack-loader.js', '.web-loader.js', '.loader.js', '.js', '.jsx'],
		modules: [path.resolve(__dirname, 'node_modules'), sourcePath]
	},
	plugins,
	module: {
		rules
	},

	devServer: {
		contentBase: isProduction ? buildPath : sourcePath,
		historyApiFallback: true,
		port: devServerPort,
		compress: isProduction,
		inline: false,
		hot: true,
		host: '0.0.0.0',
		disableHostCheck: true,
		headers: { 'Access-Control-Allow-Origin': '*' },
		stats: {
			colors: true,
			assets: true,
			version: false,
			hash: false,
			timings: true,
			chunks: false,
			chunkModules: false
		}
	}
}

Also here is babel config :

Babel config
{
	"plugins": [
		"syntax-decorators",
		"transform-decorators-legacy",
		"transform-object-rest-spread",
		"syntax-dynamic-import",
		[
			"transform-runtime",
			{
				"polyfill": false,
				"regenerator": true
			}
		],
		["react-hot-loader/babel"]
	],
	"presets": [
		[
			"env", 
			{
				"targets": {
					"node": "current"
				}
			}
		],
		"react"
	],
	"env": {
		"test": {
			"plugins": ["istanbul"]
		}
	}
}

@JorgenEvens
Copy link
Member

JorgenEvens commented Feb 19, 2020

It would seem like you have hardcoded your node_modules path with an absolute path in resolve.modules which would prevent webpack from resolving dependencies the common-js standard way.

Webpack documentation explains that you will now only resolve any module found in your root node_modules directory, which in turn contains core-js@2, not the expected core-js@3 that is installed with react-avatar.

A relative path will be scanned similarly to how Node scans for node_modules, by looking through the current directory as well as its ancestors (i.e. ./node_modules, ../node_modules, and on).

With an absolute path, it will only search in the given directory.

Could you swap out the line

modules: [path.resolve(__dirname, 'node_modules'), sourcePath]

for

modules: ['node_modules', sourcePath]

@goxr3plus
Copy link
Author

@JorgenEvens It worked wow , i am trying to understand your solution :)

@pdevito3
Copy link

pdevito3 commented Aug 23, 2022

hmm, i'm running into this same problem. I do have an relative path reference in my tsconfig but nothing out of the ordinary?

Did something change in a more recent release?

Failed to compile

./node_modules/react-avatar/es/avatar.js:4:0
Module not found: Can't resolve 'core-js-pure/stable/object/assign.js'

Import trace for requested module:
./node_modules/react-avatar/es/index.js
./components/PrivateHeader.tsx
./components/layout.tsx
./pages/index.tsx

https://nextjs.org/docs/messages/module-not-found

This error occurred during the build process and can only be dismissed by fixing the error.
{
  "compilerOptions": {
    "lib": ["dom", "dom.iterable", "esnext"],
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "removeComments": true,
    "preserveConstEnums": true,
    "strict": true,
    "alwaysStrict": true,
    "strictNullChecks": true,
    "noUncheckedIndexedAccess": true,

    "noImplicitAny": true,
    "noImplicitReturns": true,
    "noImplicitThis": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "allowUnreachableCode": false,
    "noFallthroughCasesInSwitch": true,

    "target": "es5",
    "outDir": "out",
    "declaration": true,
    "sourceMap": true,

    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "allowJs": false,
    "skipLibCheck": true,
    "forceConsistentCasingInFileNames": true,

    "jsx": "preserve",
    "noEmit": true,
    "isolatedModules": true,
    "incremental": true,

    "baseUrl": ".",
    "paths": {
      "@/*": ["./src/*"],
      "@/public/*": ["./public/*"]
    }
  },
  "exclude": ["./out/**/*", "./node_modules/**/*", "**/*.cy.ts"],
  "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"]
}

@jeanfortheweb
Copy link

jeanfortheweb commented Dec 30, 2022

Same for me, having the issue using vite as build tool.
Okay, just noticed that core-js-pure is a peer dependency, installing it resolves the issue @pdevito3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants