DenoDDeno
Powered by
maarteNNNM
Denoβ€’3y 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.
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
vite-deno-plugin
but stumbled on the same results. Anyone have any success making Deno TS modules work in Vite?
How to use Vue with Deno | Deno Docs
Vue is a progressive front-end JavaScript framework, built
How to use Vue with Deno | Deno Docs
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Deno LSP + React + TypeScript + Vite (--node-modules-dir)
Kodjo.aiKKodjo.ai / help
3y ago
How to use Tensorflow in Deno?
OxooxoOOxooxo / help
7mo ago