I'm using JSS Next with XM running into Docker and I'm getting a layout not found error, but I don't know where I can validate this.
My scenario is the following, I've some serialized items and I know that when I create a Headless Tenant, some templates like, App Route, Headless Site, are created in the templates/project/ folder, to avoid a conflict of ids, I'm deserializing first and then creating the Tenant so that the folder is merged at the time of dynamic creation, and I believe that is the problem. Because when I only create the Tenant, the layout is found and when I deserialize first and create the Tenant the layout is not found.
I've already rebuilt the indexes, rebuilt the link databases, scanned the database for broken links and nothing. I've already validated the fields in the setting folder that link the folders in templates/project and tried to find the part that JSS run the query to get the Layout, but I didn't find it.
Can someone help me?
Here are some screenshots to put the problem into context.