maarteNNNM
Denoβ€’2y agoβ€’
1 reply
maarteNNN

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.


I tried using the vite-deno-plugin but stumbled on the same results. Anyone have any success making Deno TS modules work in Vite?
Vue is a progressive front-end JavaScript framework, built
How to use Vue with Deno | Deno Docs
Was this page helpful?