-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Storybook regression in Nx >= 18.3.0 #23237
Comments
Hey @edbzn Could you try this on an Angular CLI workspace? The @storybook/angular builder is not an Nx executor, it's owned by the storybook team, and it would be nice to isolate if this is 100% related to Nx. |
This issue has been automatically marked as stale because more information has not been provided within 7 days. |
Full stacktrace from the same issue in our codebase. The interesting part is probably inside the preset.js file where they require() 'rehype-external-links', Their own code is in typescript, but distributed as commonjs.
|
I've investigated it a bit further for our case, which has the same error and stacktrace, I could resolve the problem if (and only if) I revert @nx/playwright from 19.1.0 to 19.0.7. This would allow me to execute the build-storyblock target again. Storybook and Playwright are in no way related, so it might be a red herring. Digging a bit further, I only have to revert the @nx/playwright/src/plugins/plugin.js content back to the state of v19.0.7, which might illustrate that it has todo with this change: a4a185f#diff-a5548cb917cbac63697158615091e532d39aa7d487638ca355afc3f054c0f57b @edbzn can you confirm my findings? |
Current Behavior
Running
nx run my-package:build-storybook
withnx
v18.2.3 works, but when I upgrade thenx
package to v18.3.0 (and higher), a new Storybook error appears:It's interesting to note that it's related to the
nx
package upgrade, not@nx/storybook
.Expected Behavior
The
@storybook/angular:build-storybook
executor works withnx
>= 18.3.0 and properly loads the Storybook config.GitHub Repo
No response
Steps to Reproduce
I tried to isolate / replicate the issue but I was not able to do so.
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: