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

Is Deno still supported in the new sdk #340

Open
sigmaSd opened this issue Nov 24, 2023 · 3 comments
Open

Is Deno still supported in the new sdk #340

sigmaSd opened this issue Nov 24, 2023 · 3 comments
Labels
linear Created by Linear-GitHub Sync

Comments

@sigmaSd
Copy link
Contributor

sigmaSd commented Nov 24, 2023

import * as wasm from "https://deno.land/x/[email protected]/lib.ts";
error: Relative import path "buffer" not prefixed with / or ./ or ../
If you want to use a built-in Node module, add a "node:" prefix (ex. "node:buffer").
    at https://deno.land/x/[email protected]/lib.ts:1:24
@syrusakbary
Copy link
Member

We have not taken a look yet (it's the early days of the SDK), but we'd love to support Deno on the Wasmer JS SDK as well!

@sigmaSd
Copy link
Contributor Author

sigmaSd commented Nov 24, 2023

cool! just for reference wasmpack does support deno as a target, so maybe its not that hard to add it back

@sigmaSd
Copy link
Contributor Author

sigmaSd commented Dec 10, 2023

Using deno npm compat, also doesn't work

import * as wasm from "npm:@wasmer/sdk";
await wasm.init();
error: Uncaught (in promise) TypeError: A.write is not a function
    at file:///home/mrcool/.cache/deno/npm/registry.npmjs.org/@wasmer/sdk/0.4.1/dist/Library.cjs:11:4377
    at a (file:///home/mrcool/.cache/deno/npm/registry.npmjs.org/@wasmer/sdk/0.4.1/dist/Library.cjs:11:4421)
    at Function.K.from (file:///home/mrcool/.cache/deno/npm/registry.npmjs.org/@wasmer/sdk/0.4.1/dist/Library.cjs:11:9346)
    at XA (file:///home/mrcool/.cache/deno/npm/registry.npmjs.org/@wasmer/sdk/0.4.1/dist/Library.cjs:11:54506)
    at file:///home/mrcool/.cache/deno/npm/registry.npmjs.org/@wasmer/sdk/0.4.1/dist/Library.cjs:11:54744
    at file:///home/mrcool/.cache/deno/npm/registry.npmjs.org/@wasmer/sdk/0.4.1/dist/Library.cjs:11:1275
    at Object.next (file:///home/mrcool/.cache/deno/npm/registry.npmjs.org/@wasmer/sdk/0.4.1/dist/Library.cjs:11:1380)
    at file:///home/mrcool/.cache/deno/npm/registry.npmjs.org/@wasmer/sdk/0.4.1/dist/Library.cjs:11:296
    at new Promise (<anonymous>)
    at A (file:///home/mrcool/.cache/deno/npm/registry.npmjs.org/@wasmer/sdk/0.4.1/dist/Library.cjs:11:41)

@Michael-F-Bryan Michael-F-Bryan added the linear Created by Linear-GitHub Sync label Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear Created by Linear-GitHub Sync
Projects
None yet
Development

No branches or pull requests

3 participants