Ram Durga SaiR
Denoβ€’3y agoβ€’
1 reply
Ram Durga Sai

How to Extensions in JSRuntime ?

Here's my function to create rt

fn get_js_runtime() -> deno_core::JsRuntime {
let extensions = vec![deno_console::init_ops_and_esm()];
let js_runtime = deno_core::JsRuntime::new(
deno_core::RuntimeOptions {
// No Module loading is supported
module_loader: Some(Rc::new(deno_core::NoopModuleLoader)),
extensions,
..Default::default()
}
);

js_runtime

}

I'm getting the error


Following modules were not evaluated; make sure they are imported from other code:
- ext:deno_console/01_console.js
Was this page helpful?