We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Following the tutorial, I faced following error:
error: Relative import path "env" not prefixed with / or ./ or ../ at file:///.lib/libtashkeel_wasm.generated.js:10:26
The text was updated successfully, but these errors were encountered:
Which tutorial? Would you be able to post your code?
Sorry, something went wrong.
@dsherret
wasm-bindgen = "0.2.92"
Rust code:
mod utils; use wasm_bindgen::prelude::*; #[wasm_bindgen] pub fn process( text: &str, threshold: Option<f32>, preprocessed: Option<bool>, ) -> String { utils::set_panic_hook(); todo!() }
Run build command for package:
deno task wasmbuild -p libtashkeel-wasm
deno.json
{ "tasks": { "dev": "deno run --watch main.ts", "wasmbuild": "deno run -A jsr:@deno/[email protected]" } }
main.ts:
import { process, instantiate } from "./lib/libtashkeel_wasm.generated.js"; if (import.meta.main) { await instantiate(); console.log(process("Hello")); }
@dsherret rustwasm/wasm-bindgen#1907
No branches or pull requests
Following the tutorial, I faced following error:
error: Relative import path "env" not prefixed with / or ./ or ../ at file:///.lib/libtashkeel_wasm.generated.js:10:26
The text was updated successfully, but these errors were encountered: