How use latLngBounds in Nuxt?
Closed this issue · 2 comments
io777 commented
How use latLngBounds in Nuxt? If import { latLngBounds } from "leaflet";
in component. This good work in vue2, but not work in Nuxt. I have error on page - ReferenceError window is not defined. This is related to the server-side-rendered.
DonNicoJs commented
@io777 You to import latLngBound
import inside mounted
and use either import()
or require
stale commented
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.