-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
Node 20.19.0 broke our Storybook setup #57555
Comments
Node 20.19.0 broke our storybook integration See nodejs/node#57555  Apparently wasn't allowed to set the node flag, so trying to pin the node version to 20.18.3 for now instead.
Adds the `--no-experimental-require-module` Node option when running Storybook to fix a regression introduced with Node 20.19.0 See nodejs/node#57555 and storybookjs/storybook#30867 for more context
This is not valid ESM in Node.js (the one with It sounds like storybook may have been relying on |
Node 20.19.0 broke our storybook integration See nodejs/node#57555  Apparently wasn't allowed to set the node flag, so trying to pin the node version to 20.18.3 for now instead.
Adds the `--no-experimental-require-module` Node option when running Storybook to fix a regression introduced with Node 20.19.0 See nodejs/node#57555 and storybookjs/storybook#30867 for more context
Version
v20.19.0
Platform
Subsystem
No response
What steps will reproduce the bug?
yarn create redwood-app --yes rw-node-sb cd rw-node-sb yarn rw sb
How often does it reproduce? Is there a required condition?
It reproduces 100% of the time as long as you're using Node 20.19.0. 0% of the times if you're using 20.18.3
What is the expected behavior? Why is that the expected behavior?
I expect Storybook to successfully run
What do you see instead?
Additional information
If I go to
node_modules/storybook-framework-redwoodjs-vite/dist/preset.js
and do thisIf I do that the import is successful. But it'll break on the line right after. If I update all imports in the file to specify
.js
that file passes, but it'll break in another storybook plugin file that I don't have control over, so at this point I stopped trying to fix it like that.Running node with that option makes it work without any edits to node_modules
The text was updated successfully, but these errors were encountered: