HametH
Denoβ€’15mo 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>

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.


Im pretty new to deno and ts in general, so bear with me :)
Was this page helpful?