The map provided returned an error even when not added to a Site.
解决办法
Build the apps entirely within ArcGIS Enterprise, and use the gallery layout item. The underlying data can be hosted in either ArcGIS Enterprise or ArcGIS Online.
Use links in the app if web maps are hosted in ArcGIS Enterprise.
Share the layers from ArcGIS Online and build the apps in ArcGIS Enterprise.