Skip to content

Blazor GL is missing in .NET 7 #2267

@mattleibow

Description

@mattleibow
    @mattleibow just a heads up... that Blazor skiasharp views are broken under dotnet 7.

https://github.com/mono/SkiaSharp/blob/main/source/SkiaSharp.Views.Blazor/SkiaSharp.Views.Blazor/wwwroot/SKHtmlCanvas.ts#L114

This GL symbol is not in scope.

Dont quote me on this, but my conclusion from spending a day investigating is:

net 6, ES6 modules are not used: GL is a global variable.

net7 dotnet.js is using ES6 modules, and GL is now private and isnt exported.

something generates the js code for the GL stuff and stuffs it in (dotnet.js). I am unable to determine the thing that generates this source thus far.

for now ill continue to find a workaround, but maybe you know something ?

dotnet/runtime#76077

Originally posted by @danwalmsley in #2254 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions