Skip to content

hmr style tag no support in html  #7952

@usercao

Description

@usercao

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    p2-edge-caseBug, but has workaround or limited in scope (priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions