I'm having a problem rendering the map on my angular web page.
On the first init call it works fine - the map is shown. As soon as I navigate to another page (which also has a map), I get the above-mentioned error, and the map isn't displayed.
We were able to fix it by moving the mapkit.init to the main.ts file. That way, initialisation will only happen once and the map will work on different pages