-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
The example "with-external-scoped-css" works randomly #3276
Comments
Yes I have found I need to clear the npm cache |
Yes i think it about the cache but if you change the name of you style in both scss and js it will work fine. Other problem would be how to do hot reload TT |
I was able to get reliable builds when running next with However, this definitely seems to require me to restart |
Potential solution: #3364 |
Getting the same behavior.. Used @Kyle-Mendes solution but it really does require to restart every time styles are changed. |
The work-around in my case was to put extracted stylesheets in directory outside |
Context
I need to use external sass stylesheets so I decided to follow the "with-external-scoped-css" example. However, the behavior is quite strange. The first time I launch the project it creates a static folder and I have my css working. If I try to make changes and run the project again nothing happens the most part of the time. Sometimes the static folder is re-created but it's really random.
Steps to Reproduce
Go to the "with-external-scoped-css" project
npm install && npm run start
Result: you may have a static folder and the css must work.
change the font-size in the index.sass file
npm run start
Result: nothing happens
try to delete the .next folder and the static folder
start the whole process again (npm install && npm run start)
Result: sometimes the static folder is re-created and sometimes it isn't
Expected Behavior
Result: the static folder should be created and the css should be working
change the font-size in the index.sass file
npm run start
Result: the css changes
Your Environment
Mac OS 10.11.6
node v8.6.0
npm 5.3.0
The text was updated successfully, but these errors were encountered: