-
Notifications
You must be signed in to change notification settings - Fork 27k
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
CSS not being compiled in non-pages directory #3993
Comments
andyfangaf
changed the title
Emotion not working in non-pages directory
CSS not being compiled in non-pages directory
Mar 12, 2018
@pklada try upgrading to next@canary and installing the latest next-css. Should be fixed. |
@timneutkens will do. thanks for the quick reply! |
Upgrading to |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I currently have my project setup with Emotion but have tried Sass modules as well. It compiles styles in the
pages
dir, but not elsewhere. Is this a Next.js issue, or is there something wrong with the way I set it up? When I tried with Sass modules I encountered the same problem, where the styles would exist if the component was inpages
but not in another root dir.Styles exist in
pages
Styles do not exist in
components
The weird thing is, the className is there but just not the styles for it.
Expected Behavior
Has styles in the Header className
Current Behavior
Header className is being referenced but contains no styles. However, the styles in pages does.
The text was updated successfully, but these errors were encountered: