Skip to content
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

hmr style tag no support in html #7952

Closed
7 tasks done
usercao opened this issue Apr 29, 2022 · 1 comment · Fixed by #7869
Closed
7 tasks done

hmr style tag no support in html #7952

usercao opened this issue Apr 29, 2022 · 1 comment · Fixed by #7869
Labels
p2-edge-case Bug, but has workaround or limited in scope (priority)

Comments

@usercao
Copy link

usercao commented Apr 29, 2022

Describe the bug

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". 
Strict MIME type checking is enforced for module scripts per HTML spec.

image

Additional context
https://github.com/usercao/ice-test/blob/main/public/index.html#L15

Here's there repo
https://github.com/usercao/ice-test

Relevance problem: #7136

Reproduction

https://github.com/usercao/ice-test

System Info

System:
    OS: macOS 12.3.1
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Memory: 2.15 GB / 16.00 GB
    Shell: 5.8 - /bin/zsh
Binaries:
    Node: 16.14.2 - /usr/local/opt/node@16/bin/node
    Yarn: 1.22.18 - /usr/local/bin/yarn
    npm: 8.5.0 - /usr/local/opt/node@16/bin/npm
Browsers:
    Chrome: 101.0.4951.41
    Safari: 15.4

Used Package Manager

yarn

Logs

No response

Validations

@sapphi-red
Copy link
Member

sapphi-red commented Apr 29, 2022

Minimal reproduction: https://stackblitz.com/edit/vitejs-vite-cwxjw2?file=index.html

Also I confirmed #7869 will fix this.

@sapphi-red sapphi-red added has pr p2-edge-case Bug, but has workaround or limited in scope (priority) and removed pending triage labels Apr 29, 2022
@github-actions github-actions bot locked and limited conversation to collaborators May 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p2-edge-case Bug, but has workaround or limited in scope (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants