I set up the map like this:
this.map = new Map({
target: 'map',
layers: [new TileLayer({source: new OSM()})
],
view: new View({
center: [0, 0],
zoom: 16,
})
});
On opening the page I get this:
So I open the console to make the page smaller and the map is loaded:
Do you have any idea how to fix it?