Title: [Bug]: use of isomorphic-unfetch breaks storybook-next build · Issue #174 · developit/unfetch · GitHub
Open Graph Title: [Bug]: use of isomorphic-unfetch breaks storybook-next build · Issue #174 · developit/unfetch
X Title: [Bug]: use of isomorphic-unfetch breaks storybook-next build · Issue #174 · developit/unfetch
Description: 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...
Open Graph Description: 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...
X Description: 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 ca...
Opengraph URL: https://github.com/developit/unfetch/issues/174
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: use of isomorphic-unfetch breaks storybook-next build","articleBody":"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.\r\n```\r\nModule not found: Error: Can't resolve 'unfetch' in '/Users/martaver/Projects/repro/node_modules/isomorphic-unfetch'\r\n```\r\nand several of:\r\n```\r\nModule build failed: UnhandledSchemeError: Reading from \"node:buffer\" is not handled by plugins (Unhandled scheme).\r\nWebpack supports \"data:\" and \"file:\" URIs by default.\r\nYou may need an additional plugin to handle \"node:\" URIs.\r\n```\r\n\r\nI'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:\r\n\r\nhttps://github.com/storybookjs/storybook/issues/23700","author":{"url":"https://github.com/martaver","@type":"Person","name":"martaver"},"datePublished":"2023-08-03T11:15:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/174/unfetch/issues/174"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6709c05a-2fee-7b76-9ea8-0b8a2f6a64d9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CACC:2E67B:C86AE2:10A98AF:69648E0D |
| html-safe-nonce | 4f70ce0880a3d3731433789fb24d8c749b6ffc9279d46f61754dd5fc7dc69ada |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQUNDOjJFNjdCOkM4NkFFMjoxMEE5OEFGOjY5NjQ4RTBEIiwidmlzaXRvcl9pZCI6IjMzNzk2NjM4Nzk1NjAwMDcxODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ec9caa1072ab9fdf0e71a6b61d98c80739b07256d3671840ed547bc3bae89e76 |
| hovercard-subject-tag | issue:1834855134 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developit/unfetch/174/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1d094bcef2400056cd665c8b3099cd33ca499bd4a0015511aeda3207fcdf7f1e/developit/unfetch/issues/174 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1d094bcef2400056cd665c8b3099cd33ca499bd4a0015511aeda3207fcdf7f1e/developit/unfetch/issues/174 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | martaver |
| hostname | github.com |
| expected-hostname | github.com |
| None | baa7d9900fdf7b27d604f36887af878d569cfbdcf97126832a5f4f0caf0c6ba5 |
| turbo-cache-control | no-preview |
| go-import | github.com/developit/unfetch git https://github.com/developit/unfetch.git |
| octolytics-dimension-user_id | 105127 |
| octolytics-dimension-user_login | developit |
| octolytics-dimension-repository_id | 82766832 |
| octolytics-dimension-repository_nwo | developit/unfetch |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 82766832 |
| octolytics-dimension-repository_network_root_nwo | developit/unfetch |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 842eff1d11f899d02b6b3b98fa3ea4860e64b34e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width