Replies: 2 comments
-
Apologies! I downgraded storybook-addon-react-router-v6 to v1.2.0 and still have the error. |
Beta Was this translation helpful? Give feedback.
-
Hi 👋 So your fix is the following: export const Default: Story = {
args: {
- children: (
+ children: () => (
<>
<MenuItem to="/" icon={iconMap.HomeIcon}>
Home
</MenuItem>
</>
)
}
}; Edit : also note that you must provide an element for each of your outlet, just like you would in the real app. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi 👋 ,
I think I'm having trouble understanding how to use v2.
Sorry in advance, i am not used to asking for help in a Github discussion 🙏 .
Previously i used the storybook-addon-react-router-v6 v1.2.0 with Storybook v7.1.0.
Here was my
Menu.stories.tsx
story:After upgrading storybook-addon-react-router-v6 form v1.2.0 to v2.0.2 and Storybook from v7.1.0 to v7.2.1, i have this error:

I tried to update my story like this (following the
RoutingOutletConfigObject
example of this file example), but i have the same error:My
Menu
component is:And my
MenuItem
component is like this:Glad if you can help!
Have a good day & thank you 🌞
Beta Was this translation helpful? Give feedback.
All reactions