SacriGrape
SacriGrape4mo ago

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
1 Reply
bartlomieju
bartlomieju4mo ago
GitHub
deno_core/core/benches/snapshot/snapshot.rs at dfc37c6f98fd42e6560a...
The core engine at the heart of Deno. Contribute to denoland/deno_core development by creating an account on GitHub.