Skip to content

Bug: next.js hot module reload is not working for CSS #5

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

Open
xiaohanyu opened this issue Mar 26, 2025 · 2 comments
Open

Bug: next.js hot module reload is not working for CSS #5

xiaohanyu opened this issue Mar 26, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@xiaohanyu
Copy link

Hello,

I am using the official next.js demo, the next.js HMR is not working for react-pdf, when the PDF viewer need to be reloaded, the CSS just got lost.

Demo:

2025-03-26_13-52-11.mp4

I guess this is due to the requirement of next/dynamic?

Regards.

@david-reactpdf david-reactpdf added the bug Something isn't working label Mar 26, 2025
@david-reactpdf
Copy link
Contributor

@xiaohanyu

Thank you for reporting the issue! We are looking into this and I'll let you know once we identified the problem.

@xiaohanyu
Copy link
Author

Thank you, this is not a deal breaker though, because once the PDF viewer integration is done, rarely it will change a lot. However this is still very much needed during the process of integration with PDF viewer. The performance of next.js full reload in dev mode is becoming more and more slower, you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants