Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile Typescript example with Deno v2.0.3 #194

Open
Dmitri-Sintsov opened this issue Oct 30, 2024 · 3 comments
Open

Cannot compile Typescript example with Deno v2.0.3 #194

Dmitri-Sintsov opened this issue Oct 30, 2024 · 3 comments

Comments

@Dmitri-Sintsov
Copy link

Dmitri-Sintsov commented Oct 30, 2024

When trying to run the example from docs:

import { bundle } from "jsr:@deno/emit";
const result = await bundle(
  new URL("https://deno.land/[email protected]/examples/chat/server.ts"),
);

const { code } = result;
console.log(code);

I get the following error:

Uncaught TypeError TypeError: WebAssembly.compile(): Argument 0 must be a buffer source
    at eventLoopTick (core/01_core.js:175:7)
@char8x
Copy link

char8x commented Nov 1, 2024

@Dmitri-Sintsov Upgrading to 2.0.4 can solve this problem

@Dmitri-Sintsov
Copy link
Author

Very strange. It works form cli however fails with the same error in VSCode.

@char8x
Copy link

char8x commented Nov 2, 2024

@Dmitri-Sintsov How did you get the error when running in VS Code? It would be better if there are steps to reproduce or video clips to demonstrate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants