Using Native Collections in the editor works fine. It forces you to add [ChunkSerializable]to the component to be able to add it in baking, but it works.
However, the built player doesn't even start. Checking the log you can see there's a component whose TypeIndex was not found for its given hash.
Cannot find TypeIndex for type hash 16496509230482686058. Check in the debug file ExportedTypes.log of your project Logs folder (<projectName>/Logs) the corresponding Component type name for the type hash 16496509230482686058. And ensure your runtime depends on all assemblies defining the Component types your data uses.
I'm using several components with Native Collections in my project, and turned out that every component mentioned in the log, that has issues being "loaded" was one of the components using Native Collections.
I made a new project trying to reproduce the error and it was as easy as adding a simple component that has a collection and adding it to an entity via baking. Here are the scripts.
Is there a known workaround or fix? Is there something I'm doing wrong about the usage of these components?
Unity Editor 2022.3.2 & 2022.3.5
Unity Entities 1.0.11