DenoDDeno
Powered by
hametH
Denoβ€’2y agoβ€’
10 replies
hamet

Transpile TS to JS

My app is serving a rendered ejs template as html.
Inside my html there is
<script type="module" src="test.ts"></script>
<script type="module" src="test.ts"></script>

how does my app now return the typescript as javascript?

I just get this error:
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "video/mp2t". 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 "video/mp2t". Strict MIME type checking is enforced for module scripts per HTML spec.


Im pretty new to deno and ts in general, so bear with me :)
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Transpile TS to browser-safe JS with no dependencies?
TibbsTTibbs / help
2y ago
How to transpile typescript to javascript?
jsoldiJjsoldi / help
2y ago
Rust run JS/TS
cycptCcycpt / help
3y ago
Build and bundle TS into JS
wingerlangWwingerlang / help
14mo ago