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

Pages in sub-directory not working correctly #1958

Closed
tsupol opened this issue May 13, 2017 · 6 comments
Closed

Pages in sub-directory not working correctly #1958

tsupol opened this issue May 13, 2017 · 6 comments

Comments

@tsupol
Copy link

tsupol commented May 13, 2017

If I create a folder in /pages and put a .js file there like this

 - pages
 ------ auth
 ---------- login.js 

By using Link with href="/auth/login" it won't even navigate on client-side and if you call it from the server-side it won't render correctly.

Everything works perfectly fine if I move the file directly to the /pages folder.

Any help or explanation would be appreciated.
I'm on Windows by the way.

@impronunciable
Copy link
Contributor

Just tried the same structure and it's working for me. I develop on OSX, this is a working demo https://weird-xhvwfohmca.now.sh you can see the code at https://weird-xhvwfohmca.now.sh/_src can you try to see if my code works on your windows machine? just to see if this is a windows-related issue

@tsupol
Copy link
Author

tsupol commented May 13, 2017

@impronunciable thank you for your reply. Unfortunately, using your code, the same problem still persist in my Windows machine. I tried both npm and yarn but nothing changed. I've also tried many next.js repos as well but none seem to works.

Details:

  • Windows 10 x64
  • node v.7.10.0
  • npm v.4.2.0

@timneutkens
Copy link
Member

@tsupol @impronunciable I'm pretty sure Arunoda fixed this in #1930.

@timneutkens
Copy link
Member

It has not been released yet :)

@tsupol
Copy link
Author

tsupol commented May 13, 2017

@timneutkens I'm really looking forward to it. thank you guys.

@timneutkens
Copy link
Member

I'm closing this 👍 The next release it'll be there 🙌

@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

3 participants