Ram Durga Sai
Ram Durga Sai
DDeno
Created by Ram Durga Sai on 11/28/2023 in #help
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
2 replies
DDeno
Created by Ram Durga Sai on 11/26/2023 in #help
NPM Packages Usage on deno_core ?
Hello, I'm visiting from https://deno.com/blog/roll-your-own-javascript-runtime-pt2. Utilizing JSRuntime within Rust was fantastic. I encountered an issue when attempting to load npm packages/CDNs in JS code. The error message I received is: TypeError: Module loading is not supported; attempted to load: "https://dev.jspm.io/xxxx" from "(no referrer)"
2 replies