JesusTheHun / storybook-addon-remix-react-router

Use your app router in your stories. A decorator made for Remix React Router and Storybook
Apache License 2.0
48 stars 11 forks source link

error TS2307: can't find storybook-channel-mock #39

Closed AndreasHerz closed 1 year ago

AndreasHerz commented 1 year ago

When I run tsc in my application where storybook-addon-react-router-v6 is installed, I get the following error:

image

storybook version: 7.0.22 storybook-addon-react-router-v6 version: 1.0.2

Is there a way I can fix it in my environment or does it need a bugfix?

JesusTheHun commented 1 year ago

Can you make a repro ?

AndreasHerz commented 1 year ago

I've created a demo repo, but somehow the error didn't appear anymore. After some time spending with searching for differences, I could't find a reason for it. My final solution was to uninstall this package.

I close this issue because there must be something wrong in my environment.

JesusTheHun commented 1 year ago

@AndreasHerz Just to be clear, you simply uninstalled and reinstalled the package, and now it works ? Or you just dropped the package entirely ? What package manager are you using ?

AndreasHerz commented 1 year ago

No, I tried to reconstruct the error in a demo repo. I dropped the package from my real repo entirely because I couldn't find a solution & because I couldn't reconstruct the error, I think it has nothing to do with this package. I'm using npm…

JesusTheHun commented 1 year ago

I wouldn't go so fast to say it has nothing to do with this package. I've noticed runtime errors that sound similar to yours. v2 will be pre-released soon, I'll ping you when it is so you can give it a try.

AndreasHerz commented 1 year ago

Alright, thank you!

JesusTheHun commented 1 year ago

Can you try the pre-release ? https://github.com/JesusTheHun/storybook-addon-react-router-v6/releases/tag/v2.0.0-rc.0