storybookjs/storybook

react__WEBPACK_IMPORTED_MODULE_15__.use is not a function when using React's new "use" hook

开放

#20,544 创建于 2023年1月9日

 (1 条评论) (2 个反应) (0 位负责人)TypeScript (10,058 个派生)batch import
feature requesthelp wantednextjsreact

仓库指标

星标
 (89,909 个星标)
PR 合并指标
 (平均合并 7天 22小时) (30 天内合并 184 个 PR)

描述

Discussed in https://github.com/storybookjs/storybook/discussions/20061

Originally posted by SleeplessOne1917 December 2, 2022 I'm using React's experimental use hook with Next.js for my project. It's a fairly new feature and I've had trouble finding information on it, so I'm not surprised that storybook hasn't done anything about it yet. When Storybook tries using a component with that hook, it breaks with the error in the title. What can I do in the meantime to keep my stories working until this feature is officially supported?

贡献者指南