Open nickfujita opened 23 hours ago
I can't reproduce the issue.
I've slightly modified your repository to have both stories files side by side, and they work just fine. Note that I have also removed the lock file to have the latest version of each packages.
Describe the bug Works great with
react-router-dom
, but not with@remix-run/react
. Maybe I'm misunderstanding the scope of this addon, but based on the title it seems that it should support both react-router and remix. I get that they are both made by the same team, but does this not also support Remix?To Reproduce
Expected: Renders components using Remix Link, NavLink, useNavigate. Actual: Errors out with,
To help us resolve your issue more quickly, please fork the [https://stackblitz.com/edit/storybook-addon-remix-react-router](stackblitz project) to reproduce your issue.
Added
remix.stories.tsx
, and used components from@remix-run/react
https://stackblitz.com/edit/storybook-addon-remix-react-router-qtd9rs?file=src%2Fstories%2Fremix.stories.tsxAdditional context Add any other context about the problem here.
Environment Share the output of the following command :
Storybook Environment Info:
System: OS: macOS 15.0.1 CPU: (10) arm64 Apple M1 Max Shell: 5.9 - /bin/zsh Binaries: Node: 20.16.0 - ~/.nvm/versions/node/v20.16.0/bin/node npm: 10.8.1 - ~/.nvm/versions/node/v20.16.0/bin/npm <----- active pnpm: 9.11.0 - ~/.nvm/versions/node/v20.16.0/bin/pnpm Browsers: Chrome: 129.0.6668.101 Safari: 18.0.1