DenoDDeno
Powered by
SacriGrapeS
Denoโ€ข2y agoโ€ข
1 reply
SacriGrape

Can't get Deno to support loading a .ts module

I'm attempting to setup deno_node in my project and while attempting to add deno_node and its dependencies, I get this error:
Failed to initialize a JsRuntime: Uncaught SyntaxError: Unexpected token '{'
    at ext:deno_node/_http_outgoing.ts:12:13
Failed to initialize a JsRuntime: Uncaught SyntaxError: Unexpected token '{'
    at ext:deno_node/_http_outgoing.ts:12:13


From the digging around I could do, its because I need to somehow transpile this code as Deno loads it with a ModuleLoader but I'm not sure how to do that. If there are any examples or guides for this that would be greatly appreciated
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

Deno Compile Can't Find Node Module
werthanWwerthan / help
13mo ago
Deno ts
SmorSSmor / help
3y ago
Can't get @deno/kv-oauth to work
telesto๐ŸŒ›Ttelesto๐ŸŒ› / help
10mo ago
Loading a module with `.load_main_es_module_from_code()` and TS module loader doesn't transpile
laurynasLlaurynas / help
2y ago