Issue with build using world space canvas in VR

On both Unity 2023.3.0b5 and 2023.3.0b8, when using a world space canvas, in single pass instance VR and URP, the canvas only shows on one eye in the build. But it works well on the editor. Does someone know what is causing this? Thanks

Found the solution here:

Deleting PackageCache, ScriptAssemblies, and ShaderCache worked.