You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Go to https://next-router-push-cztzjhofde.now.sh/
Click on About Button > It works
Click on Home Button > It works
Click on About Button again > It works
Refresh the page
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.
Bug report
Describe the bug
Router.push ('/')
doesn't work when I import a.styl
file intoindex.js
.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
https://next-router-push-cztzjhofde.now.sh/
About Button
> It worksHome Button
> It worksAbout Button
again > It worksHome Button
> Doesn't workExpected behavior
When I refresh the page and click on
Home Button
it should be redirected to Home Page.Screenshots
Not applicable.
System information
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.
The text was updated successfully, but these errors were encountered: