CORS error when importing Leaflet across notebooks

It’s an error I make very often too. You have to write

import { map } from "@tmcw/leaflet"

instead of

import { map } from "https://observablehq.com/@tmcw/leaflet"
1 Like