Closed aralroca closed 5 years ago
Can you remove node_modules & yarn.lock and retry?
@aralroca -- I wonder what version of core-js
you have in node_modules
? I am running an next@8 app w/ SB5 and I have core-js@2.6.3
Can you remove node_modules & yarn.lock and retry?
Sure, I did it.
@aralroca -- I wonder what version of
core-js
you have innode_modules
? I am running an next@8 app w/ SB5 and I havecore-js@2.6.3
My version in node_modules
is core-js@1.2.7
😕
I guess is related with @material-ui/core@3.9.2
, not with Next.js
Adding "core-js": "2.6.5"
on package.json as devDependeny is fixing the storybook. After this is working well (And don't break at least the things that I have from material-ui...) 😕
I changed the issue title, and I close the issue
Do we need to depend on core-js
somehow and we are not? (@babel/runtime
?)
Also getting the sam error, on a project that is not using nextjs or material ui..Just plain storybook with babel (including babel polifyll)
could it be that is caused by fbjs
required by react-addons-create-fragment
which is by itself required by @storybook/addon-info
? Some other dependencies also seem to require fbjs in my project..
forcing core-js seems to work but not something I would like to do since its not a direct dependncy on my project.
@tmeasday I have the same problem, but error stack is much bigger. I think we need add core-js@2.6.3
dependency to @storybook/ui
@artemirq that does seem like one way forward. I guess I am still wondering where that dependency comes from? I don't think babel asks us to add that as a direct dep; is there a babel dependency we are missing? (@babel/runtime
would be what I would have guessed, but it doesn't depend on core-js
)
Looks like this issue describes the problem more cleanly: https://github.com/storybooks/storybook/issues/5831 -- so I'll close this one.
I followed all the steps of the
MIGRATION.md
guide from4.1
to5.0.0
. However running the storybook I'm getting this error:I guess that is related with babel. I'm using Next.js
8.0.3
(that already have Babel 7)... And my.babelrc
file is:Maybe will be great to add to the
MIGRATION.md
how to migrate from Next.js... 😕