3,050 questions
Best practices
0
votes
1
replies
21
views
How do you install @hpcc-js/wasm in a way that integrates well with asset-mapper and importmap.php on Symfony?
Currently, I do:
npm install --prefix ./assets @hpcc-js/[email protected]
bin/console importmap:require @hpcc-js/wasm --path=./assets/node_modules/@hpcc-js/wasm/dist/index.js
It installs node_modules in /...
-1
votes
0
answers
59
views
.NET 10 Blazor WebAssembly – Calling C# from JavaScript no longer works (JSInvokable / JSExport / createDotNetRuntime) [closed]
I’m building an Android application that needs to execute C# code from DLLs via WebAssembly. With .NET 9, everything works fine using this approach:
Blazor WebAssembly project
C# methods decorated ...
0
votes
1
answer
94
views
Does worker_threads MessagePort transfer fail silently with detached ArrayBuffers in certain V8 optimization scenarios? [closed]
I'm building a high-performance image processing pipeline using Node.js worker_threads. I'm transferring large ArrayBuffers between workers using postMessage with the transfer list.
In production (...
2
votes
1
answer
119
views
Dioxus CSS styling not consistent when using fullstack feature
I'm trying to set up a nav bar for my full stack web application, yet the CSS does not want to play ball.
When I first load the application (using dx serve --web), the styling is completely incorrect, ...
1
vote
0
answers
85
views
C++ WASM breakpoints not hitting in Chrome DevTools (Emscripten 3.1.12)
I’m debugging C++ compiled to WebAssembly using Emscripten 3.1.12, running in Chrome and trying to debug the C++ code of my web extension which has C++ backend.
env.AppendUnique(
CCFLAGS = ['-Wall'...
0
votes
1
answer
113
views
How to attach the debugger for Flutter Web WASM?
I'm trying to debug a Flutter Web app compiled in WASM mode, but the debugger (DevTools) won’t attach; WebStorm keeps showing Waiting for debug connection... indefinitely.
For context, I'm compiling ...
0
votes
1
answer
65
views
How to fix ERR_INVALID_URL_SCHEME when initializing C# in WebAssembly in node.js?
While I was able to get my C# code running in the browser as WebAssembly, I get errors like this when trying to run any (vitest) unit tests that load the module that initializes .NET:
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯...
1
vote
0
answers
170
views
Compile C++ to WASM in browser client side
Why can't I get it to compile to WASM in the browser client-side, no server? Most recent error:
Error initializing compiler. Check console for details.
Failed to execute 'postMessage' on 'Worker': ...
0
votes
0
answers
56
views
How to use JSExport in two projects in the same web+C# app
I started with a working app with static exported C# methods like
[SupportedOSPlatform("browser")] // suppress CA1416 "only supported on: 'browser'"
public static partial class ...
2
votes
1
answer
97
views
When importing tables or memories, why should the "actual max size" be less than the "expected max size"?
While looking through the WebAssembly 1.0 specification I got confused by the type rules for matching limits when importing memories or tables (section "4.5.2.1 Limits"). This also goes for ...
2
votes
0
answers
51
views
How to share a single WebAssembly.Memory instance between multiple ESM worker threads in Node.js 22?
I am working with Node.js 22 using native ESM and Worker Threads, I'm trying to share a single WebAssembly.Memory instance across multiple workers to avoid duplicating memory.
// main.mjs
import { ...
4
votes
0
answers
150
views
Hydration failed when synchronously instantiating a WebAssembly module inside a client component [closed]
I came across surprising hydration mismatch in a Next.js 15 App Router app when I synchronously instantiate a small WebAssembly module during the render of a client component.
Server builds fine.
On ...
0
votes
0
answers
59
views
ASM_CONSTS mismatch when building two wasm modules using Emscripten: one with -msimd128 and one without #25631
I'm attempting to build a wasm module with Emscripten once with -msimd128 -msse2 and have a fallback without. This uses the makeflags
ifeq ($(P_SIMD),1)
LINKFLAGS += -msimd128 -msse2 // later passed ...
9
votes
0
answers
368
views
Unexpected end of file during Wasm sent package
I work on a live version of the Freeciv game.
It uses the Bevy engine and works in a native and Wasm target. After a long time without testing my Wasm version (I only checked its compile), I have a ...
2
votes
1
answer
142
views
Building Qt6 WebAssembly GUI with Emscripten fails because of missing GLESv2/EGL
I am trying to build a Qt6 GUI project for WebAssembly using Emscripten.
I managed to build the project successfully with nlohmann_json and spdlog.
Now I also want to add the cpr library to use an ...