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

Router.push ('/') doesn't work when I import a .styl file into index.js #5413

Closed
robertoachar opened this issue Oct 8, 2018 · 1 comment
Closed

Comments

@robertoachar
Copy link

Bug report

Describe the bug

Router.push ('/') doesn't work when I import a .styl file into index.js.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to https://next-router-push-cztzjhofde.now.sh/
  2. Click on About Button > It works
  3. Click on Home Button > It works
  4. Click on About Button again > It works
  5. Refresh the page
  6. Click on Home Button > Doesn't work

Expected behavior

When I refresh the page and click on Home Button it should be redirected to Home Page.

Screenshots

Not applicable.

System information

  • OS: Windows 10
  • Browser: chrome, firefox, edge
  • Version of Next.js: 7.0.1

Additional context

This problem only occurs when I import the styl file. If I remove it, the problem disappears. If I import the .styl file into the Header, the problem doesn't happen.

Source code available here: https://github.com/robertoachar/next-router-push.

Bug: https://github.com/robertoachar/next-router-push/commit/647443fca6de7abba39134e60b48bc1c82456b27.

@timneutkens
Copy link
Member

Duplicate of vercel/next-plugins#282

@timneutkens timneutkens marked this as a duplicate of vercel/next-plugins#282 Oct 17, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Oct 17, 2019
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