Hi, I decided to try out a tutorial using the JS SDK, using React, but I am having an issue mentioned in the title.
The app is a simple react app made using npx create-react-app my-app --template typescript.
https://developers.arcgis.com/javascript/latest/display-a-map/ The idea was to follow this tutorial.
I add the needed imports as so, which are:
import Map from "@arcgis/core/Map";
import MapView from "@arcgis/core/views/MapView";
and then create a component called MapComponent, which just returns a div as such:
<div id="viewDiv"></div>
but then I end up getting the error in the title. I read that you need to set the parent's height to workaround it, but to no avail.


The values and names are from the tutorial above.
But, if anyone has some handy tutorials for ArcGIS in React, I'd be happy to see them.