After executing the
npm install -S leaflet.animatedmarker
command, I updated my package.json file to include "leaflet.animatedmarker": "^1.0.0"
. Despite this, when attempting to run the project, I encountered the following error: Module not found: Error: Can't resolve 'leaflet.animatedmarker'
. The code block in question is:
import L from "leaflet";
import "leaflet-animatedmarker";
const animatedMarker = L.animatedMarker([
....
], {
....
});
What steps should I take to address this issue?