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

Syntax Error with Peer Dependency Just by Upgrading to Latest #16410

Closed
neilchaudhuri opened this issue Oct 19, 2021 · 2 comments
Closed

Syntax Error with Peer Dependency Just by Upgrading to Latest #16410

neilchaudhuri opened this issue Oct 19, 2021 · 2 comments

Comments

@neilchaudhuri
Copy link

Describe the bug
I upgraded from 6.3.9 -> 6.3.12 and get a SyntaxError on startup.

Here is the stack trace

Screen Shot 2021-10-19 at 5 51 50 PM

And the line

Screen Shot 2021-10-19 at 5 52 24 PM

To Reproduce
Project here, which is the same as for #16252. Simply upgrade to 6.3.12

System

Environment Info:

System:
OS: macOS 11.6
CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Binaries:
Node: 14.17.3 - /usr/local/bin/node
npm: 6.14.13 - /usr/local/bin/npm
Browsers:
Chrome: 95.0.4638.54
Safari: 15.0
npmPackages:
@storybook/addon-a11y: ^6.3.12 => 6.3.12
@storybook/addon-essentials: ^6.3.12 => 6.3.12
@storybook/addon-links: ^6.3.12 => 6.3.12
@storybook/react: ^6.3.12 => 6.3.12
@storybook/testing-react: 0.0.22 => 0.0.22

Additional context

None

@neilchaudhuri
Copy link
Author

Looks like addon-docs has its own dependency on react-element-to-jsx-string and allows all patch versions under v14.3.x, but the latest patch version has a bug which blows everything up.

Not sure if I should close this or leave for posterity

@neilchaudhuri
Copy link
Author

Figured out the fix for this. The issue isn't Storybook proper but rather configuration for Vite Storybook

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