Hi I am new to ESRI and the community, I am following the tutorial and trying to load a base-map (below example with @arcgis/core 4.21.2, linking the css directly from index.html), however, I am getting below error, anyone has an idea what went wrong or how to fix?
Cannot read properties of undefined (reading 'cssVarShim')
import Map from "@arcgis/core/Map";
import MapView from "@arcgis/core/views/MapView";
const map = new Map({
basemap: "dark-gray"
});
const view = new MapView({
container: "viewDiv",
map: map,
zoom: 4,
center: [-100, 40]
});