You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, this library is amazing and the docker viewer really helped me on a internal project!
Im trying to pack the viewer inside a WASM module using wasm-tools (from blazor) It was fairly easy to create a module that can be used in the browser directly, but at the moment of actually generating the label a SkiaSharp error is raised (even though the correct SkiaSharp.wasm packages are used)
As im running this behind the WASM packager, the only error that is shown is Uncaught (in promise) ManagedError: TypeInitialization_Type, SkiaSharp.SKObject, I cannot view the full trace.
To maybe solve the Skia error, but It did nothing.
For testing I load the /bin/release/net8.0/browser-wasm/AppBundle/_framework folder in a vite app, but using the included main.js is enough to test the integration.
This discussion was converted from issue #275 on October 29, 2025 04:38.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Im trying to pack the viewer inside a WASM module using wasm-tools (from blazor) It was fairly easy to create a module that can be used in the browser directly, but at the moment of actually generating the label a SkiaSharp error is raised (even though the correct SkiaSharp.wasm packages are used)
As im running this behind the WASM packager, the only error that is shown is
Uncaught (in promise) ManagedError: TypeInitialization_Type, SkiaSharp.SKObject, I cannot view the full trace.https://github.com/Fabrizz/ZPLwasm/blob/master/ZPLwasm/Program.cs (Very basic stuff, it just exposes the package in the JS side. It works as the error is while using the Skia renderer)
I dont have much C# experience really, I tried adding: (https://github.com/Fabrizz/ZPLwasm/blob/master/ZPLwasm/ZPLwasm.csproj)
To maybe solve the Skia error, but It did nothing.
For testing I load the
/bin/release/net8.0/browser-wasm/AppBundle/_frameworkfolder in a vite app, but using the includedmain.jsis enough to test the integration.Any help appreciated!
Relevant:
Beta Was this translation helpful? Give feedback.
All reactions