-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
Description
Describe the bug
新建Avalonia跨平台项目,能够正常运行Desktop,但在运行Browser时出现异常:
marshal-to-js.ts:420 Uncaught ManagedError: One or more errors occurred. (The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.)
详细异常信息如下图:

我尝试下载了SkiaSharp与SkiaSharp.WebAssembly,但也无法正常运行。

我的workload如下:


我也尝试了Issue#19692中的示例,同样无法运行正常Browser项目,也是出现与上面提到相同的异常信息
To Reproduce
marshal-to-js.ts:420 Uncaught ManagedError: One or more errors occurred. (The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.)
Expected behavior
Avalonia version
11.3.7
OS
Windows
Additional context
No response