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

[Bug]: use of isomorphic-unfetch breaks storybook-next build #174

Open
martaver opened this issue Aug 3, 2023 · 0 comments
Open

[Bug]: use of isomorphic-unfetch breaks storybook-next build #174

martaver opened this issue Aug 3, 2023 · 0 comments

Comments

@martaver
Copy link

martaver commented Aug 3, 2023

We're experiencing a problem using isomorphic-unfetch in storybook together with nextjs. Even though it works fine in the next build, importing isomorphic-unfetch in a component in storybook causes several errors.

Module not found: Error: Can't resolve 'unfetch' in '/Users/martaver/Projects/repro/node_modules/isomorphic-unfetch'

and several of:

Module build failed: UnhandledSchemeError: Reading from "node:buffer" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.

I've documented the problem and provided a full repro in the storybook repo, since it seems to be caused by a difference between how storybook and next are built, but I thought I'd also flag the issue here, in case the authors might have some insight:

storybookjs/storybook#23700

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant