maarteNNN
maarteNNN
DDeno
Created by maarteNNN on 2/9/2024 in #help
How to use Deno modules in Vite app (Vue specifically)
I scaffolded an app using https://docs.deno.com/runtime/tutorials/how_to_with_npm/vue#run-npmcreate-vite-extra. I'm trying to use the SurrealDB package inside Vue but stumbling upon an error:
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/typescript". Strict MIME type checking is enforced for module scripts per HTML spec.
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/typescript". Strict MIME type checking is enforced for module scripts per HTML spec.
I tried using the vite-deno-plugin but stumbled on the same results. Anyone have any success making Deno TS modules work in Vite?
2 replies