I am trying to create a pcf component that displays an ArcGIS webmap in a canvas app. I have a component that works in the test harness but not in a real canvas app. The maps stays blank in a canvas app. When I inspect elements using browser devtools the 'canvas' html tag containing the actual map is missing. No errors relevant to this issue are displayed in the console.
Sample code can be found on my github: https://github.com/RuneHanssens/PCF-ArcGIS
Does anyone know how to resolve this issue?