kravetsone / elysia-remix

Use Remix with Elysia with HMR support!
MIT License
21 stars 0 forks source link

URL assets are broken #5

Open andriygm opened 1 week ago

andriygm commented 1 week ago

When trying to import an asset as a URL (see https://vitejs.dev/guide/assets#importing-asset-as-url) and use it in a component, the browser throws an error and the image appears as a broken link.

Browser error when loading the page: Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "image/jpeg". Strict MIME type checking is enforced for module scripts per HTML spec.

Seems to only happen in dev mode.

vadolasi commented 1 week ago

Same here

wingleeio commented 1 week ago

I'm getting this issue as well