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

Issue with router and Storybook #2284

Closed
hlandao opened this issue Jun 16, 2017 · 1 comment
Closed

Issue with router and Storybook #2284

hlandao opened this issue Jun 16, 2017 · 1 comment

Comments

@hlandao
Copy link

hlandao commented Jun 16, 2017

When trying to use Stroybook together with NextJS, I'm running into an issue that router is missing because Storybook only renders the component.

No router instance found. You should only use "next/router" inside the client side of your app.

I still want to use next/link because I think it's better practice.
How would you suggest to bypass the issue with Storybook.

Thanks!

@arunoda
Copy link
Contributor

arunoda commented Jun 16, 2017

Check this: #1827 (comment)

It's for Jest. But the root cause is the same.

@arunoda arunoda closed this as completed Jun 16, 2017
@lock lock bot locked as resolved and limited conversation to collaborators May 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants