-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Core: fix PnP compatibility for @storybook/ui and @storybook/router packages #18412
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit b77e07b. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
@@ -50,6 +50,7 @@ | |||
"@storybook/semver": "^7.3.2", | |||
"@storybook/theming": "6.5.0-rc.1", | |||
"core-js": "^3.8.2", | |||
"qs": "^6.10.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reported issue was only related to this package
@@ -42,6 +42,7 @@ | |||
"dependencies": { | |||
"@storybook/client-logger": "6.5.0-rc.1", | |||
"core-js": "^3.8.2", | |||
"qs": "^6.10.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but I've audited the whole lib
direcotry and found this offender too
That's amazing @Andarist ! I'm updating the branch to reenable the E2E tests that were failing because of this issue, I hope you don't mind! |
@Andarist after reenabling the e2e tests, seems like it still fails, however not with the same issue (which is great!) Any ideas? |
@Andarist it looks like the PnP tests are failing for CRA. Is this something you can look into? If you'd like to pair I'd be happy to look at it together. I'm not sure whether it's related to PnP or just a problem with CRA in the current state of things. |
@yannbf @shilman I think that you are referring to the same problem - correct me if I'm wrong. So I can easily reproduce this by just calling storybook/app/react/package.json Line 22 in 6b8210b
this in turn leads to executing this call at the initialization time:
and that leads to creating a PostmsgTransport and calling this in its constructor:
The problem is that Question would be - should node ever execute what is inside that Either way - this doesn't look related to this particular PR and to PnP. |
Great point @Andarist! I think I know what's going on and I'll attempt a small change in this PR to check whether the problem will be fixed. |
9e24bec
to
b77e07b
Compare
Codecov Report
@@ Coverage Diff @@
## next #18412 +/- ##
=======================================
Coverage 32.04% 32.04%
=======================================
Files 975 975
Lines 19216 19216
Branches 4031 4031
=======================================
Hits 6158 6158
Misses 12495 12495
Partials 563 563
Continue to review full report at Codecov.
|
@yannbf it looks like the e2e and regressions tests are ✅ |
Thanks a lot for your work @Andarist <3 |
Issue: #18319
It's pretty much the same as https://github.com/storybookjs/storybook/pull/18015/files