Closed BrieucCaillot closed 4 years ago
Hi, I can confirm this issue. Temporary workaround is to directly install dependency core-js and pin to the older version 2.6.5
yarn install core-js@2.6.5
However this is likely to cause issues with some other Gatsby plugins.
I have yet to take the time to dig any deeper, however it's clear the issue comes from breaking changes in core-js v3.x.x.
Move all features from ES5, ES2015, ES2016, ES2017, ES2018 and ES2019 to one namespace for stable ES
- it's available as core-js/es, all those features in modules folder has es. prefix.
Change prefix for ES proposals from es7. to esnext., they no longer available in core-js/es7, use core-js/stage/* instead of that.
Meaning any references to core-js modules that use the es number,
like core-js/modules/es6.regexp.split
actually need to be refactored to something like 'core-js/modules/es.regexp.split
core-js@3.6.5 is coming in as a dependency for all the gatsby plugins, however the following dependencies pull in core-js@2.6.11
There is also an issue regarding the same issue on the gatsby-source-storyblok git repo: #27
Hopefully a fix would be to update all dependencies to latest but I have not tried this, it depends if those have updated to core-js 3.x.x also.
Update:
It looks like storyblok-js-client is now using @babel/runtime-corejs3
, couldn't see when it was updated, but current version is storyblok-js-client@2.5.1
, however gatsby-source-storyblok
is still using storyblok-js-client@1.0.22
Looks like we need a fair bit of upstream maintenance to get this sorted. I'll see if I can commit any time but help would be awesome.
My pull request to fix this was merged and an update to gatsby-source-storyblok was pushed to npm today as v1.0.0. I'll submit a PR to pull the updated package into this repo for others to benefit.
Those of you having this problem can just update your dependencies and make sure to remove the direct reference to core.js 2.x.x to benefit from core.js 3.0 support.
Hi, thanks for submitting this issue, @BrieucKyo and thanks @heresandyboy for your work!
I updated the dependencies of repository, now, it all works well. I'll close this issue.
Hi! I've just cloned the repo and after i run
yarn install
&gatsby develop
, i get the following error :