-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Portable Docs: Umbrella issue #19846
Comments
Shiver me timbers!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-alpha.59 containing PR #20083 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
@JReinhold please file separate issues next time 🙏 |
@shilman I'm still seeing issues with the first listed bug in the beta,
For each it adds:
is anyone aware of a resolution for use with webpack5? Thanks! |
@Skaidon we recently got rid of lodash in the csf library. Can you delete csf from your lockfile and reinstall to make sure you have the latest? If that doesn't work, maybe you can do "yarn why" or "npm ls" to figure out which package is using the old version. If it's one of ours maybe we have some loose ends to clean up |
Closing this. If anybody is encountering a lodash ESM issue, please open a new issue. |
This issue is a collection of all issues and bugs that we need to fix to make Portable Docs usable. As we continue to try it out we should add to this list.
Currently the last known version to work* with Next.js is
v7.0.0-alpha.33
. An example can be seen at this branch (currently private repo).* still requires a very patchy
next.config.js
though1. Storybook modules don't transpile
lodash
usage correctlyCurrently our modules are set up to not prebundle
lodash
(among other modules) withtsup
because we fear that it would introduce too much duplicate code. Unfortunatelylodash
isn't well suited for ESM, so we run into a lot of errors like this:With Next.js this is currently fixable in userland using https://github.com/martpie/next-transpile-modules to transpile Storybook modules like this in the
next.config.js
:But that shouldn't be necessary. Maybe we can replace our
lodash
usage withlodash-es
(without causing other problems of course), or maybe we need to rethink our prebundling oflodash
.2.MutationObserver
is not defined on the serverv7.0.0-alpha.34
introduced a call toMutationObserver
, which is not safe to call on the server, Next.js will break when this happens. We have to create it inside auseEffect
instead. It is most likely the one introduced here: https://github.com/storybookjs/storybook/pull/15472/files#diff-00fce8472f1edcf3c676cf488ae236daa3ea381a9a5223018db8783181c2c5ebR413.@storybook/theming
breaks withCannot read properties of null (reading 'registered')
This is an error we've run into a couple of times now in different places, and it's most likely related to
emotion
, andemotion
either not being loaded correctly, or loaded multiple times, causing problems.We still haven't triaged what causes this or which prerelease version introduced this.
The text was updated successfully, but these errors were encountered: