Skip to main content

Questions tagged [webassembly]

WebAssembly (abbreviated Wasm) is a new portable, size- and load-time-efficient format suitable for compilation to the web.

0 votes
0 answers
42 views

Cors Issues - Nextjs and wasm scripts

I am trying to rewrite deployed Wasm app to nextjs route. Actually I have tried different approaches, but it always fails. Here's probably the simplest app I wanted to rewrite. Here's the entry point: ...
Wiktor Kujawa's user avatar
0 votes
0 answers
31 views

WebAssembly support for Electron Application

Does WebAssembly support Chromium web browser which is the backend browser for an Electron application? The website mentions that it does support Chrome which is similar to Chromium
InputBlackBoxOutput's user avatar
2 votes
1 answer
60 views

Build wasm with import memory wasm

I want to write code in rust which I will then compile into wasm so that it uses import memory. In the compiled file the wasm from rust want to see similar code (module (import "host" &...
Danila's user avatar
  • 73
0 votes
1 answer
55 views

Blazor WebAssembly Standalone App Accessing An Already Authenticated ASP.NET Core Web API

I have set up an ASP.NET Core Web API where I was able to successfully configure authentication where I can post my email and password to API/login and then access API/data where it shows a 401 error ...
Robin Wilson's user avatar
0 votes
0 answers
29 views

Preload WASM Module when instantiating another one in Javascript

What is the equivilant of this cmd in JS: wasmtime run --preload mod0=mod0.wat --invoke 'hello' hello.wasm The underlying code errors out: const importObject = { imports: { imported_func: arg =&...
GenK's user avatar
  • 11
2 votes
0 answers
32 views

After 'cargo install wasm-pack' do I need to manually update chrome & chromedriver?

I'm on Windows 11. When I cargo install wasm-pack it installs chromedriver v 114, but v 114 doesn't work with the current version of Chrome. I want to be able to run tests via wasm-pack test --chrome -...
Carl's user avatar
  • 373
0 votes
0 answers
16 views

WASM library fails in Webpack 4

I have React App and we want to use our own WASM library in it. However after installing I'm getting error on this line (it happens in node_modules) if (typeof input === 'undefined') { input = ...
Alex's user avatar
  • 628
0 votes
0 answers
24 views

How to pass parameters to the chromedriver when running Rust tests

I'm trying to reproduce an example of Rust-application by following the step-by-step instructions. Everything was going fine before the start of testing. I stopped at the last line of this page. Only ...
Konstantin Makarov's user avatar
0 votes
1 answer
36 views

How to load a webassembly file directly in android JavaScriptSandbox using JS

I am trying to use webassembly from assets folder inside android. I have this working test code: suspend fun runWebAssembly(): Result<String> = runCatchingCo { val isolate = getSandbox()....
lagoru's user avatar
  • 707
1 vote
0 answers
43 views

Browser not using web assembly for Flutter web app

I am building a flutter web app (using flutter 3.22 and Flame Engine). I am building the app with the --wasm flag. But neither Chrome nor Edge is uses the wasm modules and instead falls back to js. ...
MG-LSJ's user avatar
  • 47
0 votes
1 answer
41 views

Module.requestFullscreen is not a function in Emscripten

When compiling to WebAssembly using Emscripten, Emscripten gives you .wasm file, a .html file and a .js file. The html file, it seems, is set up to give a basic demonstration of the workings of ...
Zebrafish's user avatar
  • 12.8k
1 vote
0 answers
12 views

How to examine scoped data service objects in the Immediate Window of a WASM Visual Studio app?

My WASM app developed with VS Community 2022 v 17.10.1 creates a scoped data Service (via builder.Services.AddScoped() in Program.cs in which MyData is a class containing only properties). At ...
Cincy Steve's user avatar
0 votes
0 answers
23 views

How can I return a vector of structs in C++ using Emscripten and WebAssembly

I want to return to the javascript a type created in c++, called PlayerAction. PlayerAction have two elements, Player, type int and Action, type int_64 I tried to do it the way below but it doesn't ...
Lucas celestino's user avatar
0 votes
0 answers
47 views

Calling wasm code from rust through wasm-bindgen

I have inherited a .wasm binary that was initially compiled from Rust with wasm-bindgen. I need to call this binary from Rust. For this sake, I'm using wasmtime. I have dutifully bound all the exports,...
Yoric's user avatar
  • 4,051
0 votes
0 answers
187 views

How do I allow import.meta in nextjs _next/static/media directory?

I'm creating an app which uses wasm and other JavaScript files which I personally have not created. These files generate a file which is stored at this url: http://localhost:3000/_next/static/media/...
charlietlamb's user avatar

15 30 50 per page