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

Cannot find module 'prettier/parser-babel' #17255

Closed
rebelliard opened this issue Jan 17, 2022 · 2 comments
Closed

Cannot find module 'prettier/parser-babel' #17255

rebelliard opened this issue Jan 17, 2022 · 2 comments
Assignees

Comments

@rebelliard
Copy link

rebelliard commented Jan 17, 2022

Describe the bug
Running storybook fails due to a suddenly incompatible version of prettier.

To Reproduce
Since upgrading from 6.4.12 to 6.4.13, the app fails with the following error:

Cannot find module 'prettier/parser-babel'

FYI, my current prettier version is:

"prettier": "^1.19.1",

Should prettier v1 be too old, the versioning shouldn't be a patch, I believe.

System


  System:
    OS: macOS 12.1
    CPU: (8) x64 Apple M1
  Binaries:
    Node: 12.22.7 - /var/folders/92/h5w5jr6j65773jdx4ylknmbr0000gn/T/fnm_multishells/61702_1642413691456/bin/node
    npm: 6.14.15 - /var/folders/92/h5w5jr6j65773jdx4ylknmbr0000gn/T/fnm_multishells/61702_1642413691456/bin/npm
  Browsers:
    Chrome: 97.0.4692.71
    Firefox: 94.0.2
    Safari: 15.2
  npmPackages:
    @storybook/addon-a11y: ^6.4.12 => 6.4.13
    @storybook/addon-actions: ^6.4.12 => 6.4.13
    @storybook/addon-docs: ^6.4.12 => 6.4.13
    @storybook/addon-essentials: ^6.4.12 => 6.4.13
    @storybook/addon-interactions: ^6.4.12 => 6.4.13
    @storybook/addon-knobs: ^6.4.0 => 6.4.0
    @storybook/addon-links: ^6.4.12 => 6.4.13
    @storybook/addon-toolbars: ^6.4.12 => 6.4.13
    @storybook/addon-viewport: ^6.4.12 => 6.4.13
    @storybook/addons: ^6.4.12 => 6.4.13
    @storybook/jest: 0.0.5 => 0.0.5
    @storybook/react: ^6.4.12 => 6.4.13
    @storybook/testing-library: 0.0.7 => 0.0.7
    @storybook/theming: ^6.4.12 => 6.4.13```
@shilman
Copy link
Member

shilman commented Jan 18, 2022

Yee-haw!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.5.0-alpha.20 containing PR #17257 that references this issue. Upgrade today to the @next NPM tag to try it out!

npx sb upgrade --prerelease

Closing this issue. Please re-open if you think there's still more to do.

@shilman shilman closed this as completed Jan 18, 2022
@shilman
Copy link
Member

shilman commented Jan 21, 2022

¡Ay Caramba!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.4.14 containing PR #17257 that references this issue. Upgrade today to the @latest NPM tag to try it out!

npx sb upgrade

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

No branches or pull requests

2 participants