Currently integrating Google Maps JavaScript MarkerClusterer from CDN, I am considering transitioning to the NPM version for Typescript checking in my JavaScript files. However, I am encountering difficulties understanding how to make this switch. The documentation assumes prior knowledge on the topic and simply instructs to use this line after installing the NPM version:
import { MarkerClusterer } from "@googlemaps/markerclusterer";
A problem arises when Google Chrome indicates:
Uncaught TypeError: Failed to resolve module specifier "@googlemaps/markerclusterer". Relative references must start with either "/", "./", or "../".
What steps should I take to address this error?