-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Style sheet doesn't load on some pages #3357
Comments
Please provide reproduction 🙏 |
Not sure if this helps but when I see this behavior, deleting the |
Ok, it fixed itself 😵💫. However, I think it's still worth it to investigate a bit into why this is happening, as it's quite annoying. I've searched for |
I thought I had narrowed it down when only refreshing the top level document, "Homepage," was getting rid of the css. When I created a new file called test at the top level though, it stopped happening entirely? |
I had a similar problem. To reproduce write on cli What I did was downgrading Nextra to v2. |
@carlosrsabreu please provide runnable reproduction, if you need help with fixing your issue |
# Overview <!-- A clear and concise description of what this pr is about. --> I address an issue where undefined locale URLs defaulted to 'en' in Nextra documentation. I've implemented Nextra's middleware to recognize locale cookies. https://github.com/user-attachments/assets/03a068df-feef-47f4-b505-532fb29da329 ### [AS-IS] - Custom middleware redirecting undefined locales to '/en' ### [TO-BE] - Use Nextra's built-in middleware - Exclude 'img' directory in matcher configuration - Prevents unnecessary middleware processing for image files, aligning with Nextra's example configuration (see [Nextra PR #3439](https://github.com/shuding/nextra/pull/3439/files#diff-e986406290c383f5b481ce7bc0136f142b96083e0807190d530561eea83bfc70R5-R7) `icon.svg`) ### Issue Nextra styles may appear broken in development. See [Issue #3357](shuding/nextra#3357). Could you please confirm if you're experiencing this as well? <img width="1797" alt="스크린샷 2024-10-13 오후 8 26 02" src="https://github.com/user-attachments/assets/88dd507a-81ab-4312-abce-feea2a714495"> ## PR Checklist - [x] I did below actions if need 1. I read the [Contributing Guide](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md) 2. I added documents and tests.
For anyone having this issue here is a fix #3461 (comment) by @87xie Docs were updated to require https://nextra.site/docs/docs-theme/start#create-nextjs-app-component |
I've encountered this issue as well. In the development environment, I see the following screen. It seems to occur randomly on either To reproduce in the development environment:
I've checked this comment, but it wasn't a viable solution in my case as I'm already using _app.tsx. |
Describe the bug A clear and concise description of what the bug is.
The style tag sometimes has a media="x" attribute, making it not load.
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to
happen.
Style sheet never has media="x"
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
More details
I only used turborepo and bun to test, but it shouldn't change the result.
The text was updated successfully, but these errors were encountered: