QwikDev / qwik

Instant-loading web apps, without effort
https://qwik.dev
MIT License
20.84k stars 1.31k forks source link

[🐞] Refused to apply style from '<URL>' because its MIME type ('text/html') is not a supported stylesheet MIME type #4244

Closed jocarrd closed 4 months ago

jocarrd commented 1 year ago

Which component is affected?

Qwik Runtime

Describe the bug

When using Tailwind and changing the folder structure of the initial template, that error appears but the app works well.

image

Reproduction

https://stackblitz.com/edit/qwik-starter-tjv86x?file=src%2Froutes%2Flayout.tsx

Steps to reproduce

To reproduce the error, you must change the name of a component, including its CSS styles, and then move it to another folder. When reloading or restarting the application, the error disappears. I believe it is a hot module replacement error when you mix css modules and tailwind .

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 16.14.2 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 7.17.0 - /usr/local/bin/npm
  npmPackages:
    @builder.io/qwik: 1.0.0 => 1.0.0 
    @builder.io/qwik-city: ^1.0.0 => 1.0.0 
    undici: 5.22.0 => 5.22.0 
    vite: 4.3.3 => 4.3.3

Additional Information

No response

stackblitz[bot] commented 1 year ago

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

DylanJu commented 1 year ago

I'm experiencing the same issue with module css. I agreed it because HMR. If app was restarted, message is disappeared.

gioboa commented 5 months ago

@jocarrd Is it still a valid issue with the latest version?

github-actions[bot] commented 5 months ago

Hello @jocarrd. Please provide the missing information requested above. Issues marked with STATUS-2: missing info will be automatically closed if they have no activity within 14 days. Thanks 🙏