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

[Feature]: 升级 storybook v8 版本 #6219

Open
lanmingle opened this issue Sep 14, 2024 · 6 comments
Open

[Feature]: 升级 storybook v8 版本 #6219

lanmingle opened this issue Sep 14, 2024 · 6 comments

Comments

@lanmingle
Copy link

这个功能解决了什么问题?

目前插件自带的版本是 v7,使用路由(react-router)默认是 v6,但目前 storybook-addon-react-router-v6 是绑定 v8 的。

你期望的 API 是什么样子的?

参考:https://storybook.js.org/addons/storybook-addon-react-router-v6

@zllkjc
Copy link
Member

zllkjc commented Sep 19, 2024

要不要 PR 一个,参考 v7 的实现

@zllkjc
Copy link
Member

zllkjc commented Sep 19, 2024

https://github.com/rspack-contrib/storybook-rsbuild..

让我来看看能不能基于 Rsbuild 实现下

@lanmingle
Copy link
Author

lanmingle commented Sep 19, 2024

要不要 PR 一个,参考 v7 的实现

让我为难了,react 我重新捡起来,折腾没半年,0_0

@chenjiahan
Copy link
Member

建议直接使用 https://github.com/rspack-contrib/storybook-rsbuild 😄

@lanmingle
Copy link
Author

玩不转 storybook-rsbuild 了,对着例子还是一样有问题!https://github.com/rspack-contrib/storybook-rsbuild/blob/main/sandboxes/react-18

React is not defined

请求升级 8 吧!要的就是傻瓜式。

@zllkjc
Copy link
Member

zllkjc commented Oct 15, 2024

回复下这个 issue,我们已经计划做一下 v8 插件的支持。

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

No branches or pull requests

3 participants