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

Module not found: Error: Cannot resolve module 'next/router' #472

Closed
smallseven1213 opened this issue Dec 22, 2016 · 10 comments
Closed

Module not found: Error: Cannot resolve module 'next/router' #472

smallseven1213 opened this issue Dec 22, 2016 · 10 comments

Comments

@smallseven1213
Copy link

Hi

I try to use next/router in my project.
but always show "Module not found: Error: Cannot resolve module 'next/router'"

try to reinstall nextjs, but next/router is always missing.

@arunoda
Copy link
Contributor

arunoda commented Dec 22, 2016

May be it's related to this: #464
@nkzawa shall we cut a new beta?

@rauchg
Copy link
Member

rauchg commented Dec 22, 2016

+1 @arunoda @nkzawa

@rauchg
Copy link
Member

rauchg commented Dec 23, 2016

+1

@rauchg
Copy link
Member

rauchg commented Dec 23, 2016

😂

@souporserious
Copy link
Contributor

+1

@arunoda
Copy link
Contributor

arunoda commented Dec 24, 2016

Guys, we've fixed this problem and now it's available on NPM. (2.0.0-beta-1)
But we fixed an another related issue.

@rauchg @nkzawa could you cut a new beta release again?

@nkzawa
Copy link
Contributor

nkzawa commented Dec 24, 2016

Released 2.0.0-beta.2.

@nkzawa nkzawa closed this as completed Dec 24, 2016
@souporserious
Copy link
Contributor

souporserious commented Dec 24, 2016

Still getting an error when trying to use the router 😕 I even deleted node_modules and reinstalled.

When I try and do import Router from 'next/router' I get this:

image

@arunoda
Copy link
Contributor

arunoda commented Dec 25, 2016

@souporserious You may need to do yarn upgrade

@souporserious
Copy link
Contributor

I'm dumb 😞 thanks! That worked perfect 😄

@lock lock bot locked as resolved and limited conversation to collaborators May 12, 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

5 participants