Hi Mike,
I don't have any answers but just wanted to drop a link to an existing issue which I and others are experiencing that seems related:
All components are not defined
As this was reported in Sept. 2023 (so, 6 months ago) it'd be great if we could get some movement from Retool support here. I owe them a response at that thread but have been too busy, but it seems widespread enough that I don't think it all hinges on my exporting an app