Search Unity

WebGL Build Errors Unity 2021.2

Discussion in 'Visual Scripting' started by crafTDev, Jul 18, 2021.

  1. crafTDev

    crafTDev

    Joined:
    Nov 5, 2008
    Posts:
    1,820
    Is anyone else having this problem?

    I get these errors even in a brand new project when trying to build to WebGL with UnityVS with 2021.2:

    Code (CSharp):
    1. Assets/Unity.VisualScripting.Generated/VisualScripting.Core/AotStubs.cs(845,52): error CS0234: The type or namespace name 'ReadOnlySpan<>' does not exist in the namespace 'System' (are you missing an assembly reference?)
    Code (CSharp):
    1. Assets/Unity.VisualScripting.Generated/VisualScripting.Core/AotStubs.cs(846,71): error CS0234: The type or namespace name 'ReadOnlySpan<>' does not exist in the namespace 'System' (are you missing an assembly reference?)
    Code (CSharp):
    1. Assets/Unity.VisualScripting.Generated/VisualScripting.Core/AotStubs.cs(846,174): error CS0234: The type or namespace name 'ReadOnlySpan<>' does not exist in the namespace 'System' (are you missing an assembly reference?)
    I have already bug reported a month ago with no fix yet but i's weird this is not being discussed yet.

    Thanks,
    jrDev