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

error prevents gatsby from building: Can't resolve core-js/modules/es.array.iterator #177

Closed
barbalex opened this issue Jun 19, 2020 · 2 comments

Comments

@barbalex
Copy link

After installing react-stickynode I got this error in the node console:

yarn run v1.22.4
$ gatsby develop
success open and validate gatsby-configs - 0.037s
success load plugins - 1.034s
success onPreInit - 0.011s
success initialize cache - 0.006s
success copy gatsby files - 0.073s
success onPreBootstrap - 0.006s
success createSchemaCustomization - 0.028s
success source and transform nodes - 0.106s
success building schema - 0.247s
success createPages - 0.053s
success createPagesStatefully - 0.075s
success onPreExtractQueries - 0.002s
success update schema - 0.024s
success extract queries from components - 1.206s
success write out requires - 0.079s
success write out redirect data - 0.380s
success Build manifest and related icons - 0.081s
success onPostBootstrap - 0.093s
⠀
info bootstrap finished - 5.927 s
⠀
success run queries - 0.064s - 2/2 31.37/s

 ERROR #98123  WEBPACK

Generating development JavaScript bundle failed

Can't resolve 'core-js/modules/es.array.iterator' in 'C:\Users\alexa\vermehrung\node_modules\react-stickynode\dist'

File: node_modules\react-stickynode\dist\Sticky.js
@barbalex
Copy link
Author

It seems that the issue is that react-stickynode uses core-js v3 while gatsby is still on v2.

So for any other one trying to use react-stickynode with gatsby: wait until this issue is solved.

@barbalex
Copy link
Author

Closing as this is not solvable by react-stickynode

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

No branches or pull requests

1 participant