Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

next-sass: Custom Server routing doesn't automatically compile styles for css modules #168

Closed
Kyle-Mendes opened this issue May 8, 2018 · 0 comments · Fixed by #228
Closed

Comments

@Kyle-Mendes
Copy link

Expected Behavior

When using a custom server, routing to a page should automatically bundle the styles of all included components.

Current Behavior

That is not the case. You will need to hard refresh the page to get the styles to be built.

Steps to Reproduce (for bugs)

  1. Clone https://github.com/Kyle-Mendes/next-sass-modules/tree/custom-server (make sure you're on the custom-server branch
  2. Run yarn dev
  3. visit localhost:3000
  4. Click "Test Page"
  5. Observe: The Headline component is not styled.
  6. Refresh the page
  7. Observe: The Headline component is styled.

NOTE:

Sometimes, even doing a hard reload results in Headline not being styled.

Your Environment

Tech Version
next 6.0
node 9.11.1
OS Mac OS
browser Chrome
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant