-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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 module is not loading on route change when using dynamic import #18252
Comments
Hi @SZharkov. Can you please provide a full reproduction of this issue in a repository? |
@jamesmosier that's problematic, because the project is private. And I am not sure whether trying to reproduce from scratch will show this issue. I just hope that somebody faces the same issue. next.js/packages/next/pages/_document.tsx Line 168 in 11fce3a
|
@jamesmosier you can find the reproduction in this repo - https://github.com/SZharkov/dynamic-import-no-styles. |
@jamesmosier do you have any update? :) |
I am seeing the same behavior, but with productions builds only, it works as expected in development mode. |
Really would appreciate to hear some thoughts. This bug blocks me from optimizing projects using dynamic imports and that affects negatively on page speed and scores too much 😞 |
This was fixed on |
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
After I've implemented dynamic loading of components - some of the components are not loading their scss module when changing the page. I see no issues in dev mode and that's only related to the production.
Describe the bug
My app is dynamic, pages and sections are generated dynamically (based on received data from the server).
It works this way:
System information
The text was updated successfully, but these errors were encountered: