-
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
scss style not load correctly with scss module and typescript in dynamic folder route #11474
Comments
@schwamic you can use the GitHub 👍 feature to upvote an issue. Please don't post "Same here" as it is not constructive. |
I too see this issue, when running in dev mode. Any workaround to fix this ? |
@sridaradappt you can use the GitHub 👍 feature to upvote an issue. Please don't post "Same here" or "I too see this issue" as it is not constructive. |
For anyone else who see the same issue: currently, I use back to
To resolve the
Note, if you are using typescript, you need Then all the scss module working for me. |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
Describe the bug
Tried next js 9.3.2 with typescript and scss module. As the doc mentioned, now I only need install
sass
dependency. And the global level, component level and static route all working great. But when I have a dynamic folder structure, for example,src/pages/[country]/[showId]/index.tsx
, and then this page cannot load scss module correctly. Also tried add a scss module insrc/pages/[country]
folder and apply it to the page component, it also doesn't work.But when I tried
src/pages/[country].tsx
and add a scss module for it to load, then it can load correctly.Looks like the scss module load in my dynamic page component, but the style was not load.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
src/pages/[country]/index.tsx
andsrc/pages/[country]/index.module.scss
.Expected behavior
scss style should also applied.
Screenshots
System information
Additional context
Tried use back to
@zeit/next-sass
, and then for most cases for above situation, it's working. But in develop mode, it has a bug with theLink
. If user click aLink
to go to a new page, when the new page first time loading, the style is missing. But later, the style will come back. This is only an issue in develop mode. Didn't see in prod mode with@zeit/next-sass
.The text was updated successfully, but these errors were encountered: