I have a subscene loaded with EntitySceneReference that has a baker with some prefabs that get converted. Everything works in Editor but in Build I get this error:
at Unity.Entities.EntityManager.Instantiate (Unity.Entities.Entity srcEntity) [0x00012] in <d1cbafd757cf4a32aaa19f9c9a1e11c1>:0
at InstanceData.NewObject (Unity.Entities.EntityManager em, Unity.Entities.Entity entity, System.Byte objectType, Unity.Mathematics.float3 position, System.Single yaw) [0x00000] in <ca09017540c54029aebc78c813224ce4>:0
at InstanceData.NewPlayerObject (Unity.Entities.EntityManager em, Unity.Entities.DynamicBuffer`1[T] players, Unity.Entities.Entity entity, Client client, Unity.Mathematics.float3 position, System.Single yaw) [0x00000] in <ca09017540c54029aebc78c813224ce4>:0
at NetworkManager.JoinTavern (Client client) [0x00088] in <ca09017540c54029aebc78c813224ce4>:0
at Client.Initialize () [0x00051] in <ca09017540c54029aebc78c813224ce4>:0
at Client.Auth () [0x000b6] in <ca09017540c54029aebc78c813224ce4>:0
at NetworkManager.OnUpdate () [0x000ec] in <ca09017540c54029aebc78c813224ce4>:0
at Unity.Entities.SystemBase.Update () [0x0004e] in <d1cbafd757cf4a32aaa19f9c9a1e11c1>:0
at Unity.Entities.ComponentSystemGroup.UpdateAllSystems () [0x0007a] in <d1cbafd757cf4a32aaa19f9c9a1e11c1>:0
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
Unity.Debug:LogException(Exception)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems()
Unity.Entities.ComponentSystemGroup:OnUpdate()
Unity.Entities.SystemBase:Update()
Unity.Entities.DummyDelegateWrapper:TriggerUpdate()```