-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
nuxt 2.9.2 does not run with storybook 5.2.1 #8267
Comments
@Aaron-Pool @ndelangen this looks like a core-js version issue. do you know if we have a workaround here? |
If it's a version issue, you could add a In other news we should probably do a pass to update all our Vue dependencies at some point, I know that, at the very least, the Vue storybook app is still using a really old (and I believe deprecated) Babel preset. |
Can you please guide me with the suggested |
@maziarz just add the following to your "resolutions": {
"core-js": "2.6.5"
} followed by running Just change the version number to the one you want. I'm using |
Thanks for the assist @thuringia ! Did that fix things for you @maziarz ? |
I tried to add the resolutions and run |
@maziarz is it the same errors + 4 more, or an entirely different set now? |
|
@maziarz Mind posting your package.json? |
More than happy to do so!
|
You may have to change it to See here: yarnpkg/yarn#5759 If that doesn't work, I might try deleting your |
Awesome! That did the trick. Cheers, Aaron! |
Well damnit, i was a bit to excited with nuxt running, but now storybook is failing:
|
I was afraid of that. Storybook is depending on core-js 3. Ok, try just resolving You may have to read through this to figure out the exact syntax you need, but I think it should be something like |
Bit of a twist here. As of Nuxt 2.6.0 it seems to be possible to use core-js@3. I tried to apply this to my current project (
|
Nevermind. I deleted |
@maziarz sweet! Closing the issue then, let me know if anything else comes up! |
I have the same problem, how to solve it in the end? Thank you |
Thank you for your reply, but unfortunately I need to use Nuxt 2.10.0 to solve the bug in the development environment, is there any other feasible solution? |
@yiling-e0 Yes, I believe if you add "resolutions": {
"nuxt/**/core-js": "2.6.5"
} to your |
I tried it, but
These dependencies were not found: friendly-errors 15:24:26
|
@yiling-e0 would you mind pasting your package.json? |
Describe the bug
nuxt does not seem to run when
yarn run dev
is started a long with storybook.To Reproduce
Steps to reproduce the behavior:
yarn create nuxt-app <project-name>
yarn add [email protected]
yarn add @storybook/[email protected]
yarn add babel-preset-vue --dev
stories
folder in project"scripts": {...,"storybook": "start-storybook"}
to package.jsonyarn run dev
Error
Expected behavior
That it compiles.
System:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: