Tanstack router with Storybook #1330
-
I'm currently using tanstack router with Storybook and I faced this error:
I just added provider with routes like this in storybook preview.tsx file: ...
decorators: [
(Story) => {
return (
...
<RouterProvider router={router} />
<Story />
...
)
},
],
... How can I solve this error? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I have a similar question. Trying to setup Storybook v8.05 with Tanstack Router. My preview.jsx of Storybook looks like this:
But I get the following error: Can't find the mistake, please help! |
Beta Was this translation helpful? Give feedback.
-
EDIT: Found a working solution:
|
Beta Was this translation helpful? Give feedback.
-
I faced the same error as @socker210. |
Beta Was this translation helpful? Give feedback.
-
@Jurek-Raben @thienandangthanh Thank you guys 😄 |
Beta Was this translation helpful? Give feedback.
I faced the same error as @socker210.
And I come across this answer #952 (comment).
It works in my projects.