Adding a Vancouver Downtown Map with Marker and Pathway with Leaflet (Nextjs 13)

Поділитися
Вставка
  • Опубліковано 2 лис 2024

КОМЕНТАРІ • 7

  • @fixesdev
    @fixesdev Рік тому

    Excellent video Monika! Bests

  • @aymenyaseen6405
    @aymenyaseen6405 Рік тому +2

    Wow someone else in Vancouver uses react-leaflet with next js

  • @clintjavillo6317
    @clintjavillo6317 Рік тому +4

    Trevor, if you see this,
    First!

  • @szerkan778
    @szerkan778 Рік тому +1

    Hi Monika,
    I'm deeply struggeling with those errors.
    ReferenceError: window is not defined
    Build error occurred Error: Failed to collect page data for /common/ChangeView
    To be more specific, when I'm using production mode, everything is fine. I have no errors, but when I want to deploy this application (using vercel) I'm completly stucked. I have tried dynamics imports, used window validation check... No result's.
    Please let me resolve this problem :(
    -V "react": "^18.2.0", "next": "13.1.1", "leaflet": "^1.7.1", "react-leaflet": "^4.2.0",

    • @techeducationnow
      @techeducationnow  Рік тому +1

      Hi,
      Please look at the Source Code Documentation on Github i provided in the description.
      Your error looks like it might be that you didn't set up this page:
      github.com/mszucseducation/leaflet-map-nextjs/blob/main/components/Map/index.js

    • @szerkan778
      @szerkan778 Рік тому

      @@techeducationnow I actually did. I am a bit confused . I literally checked everything. I am thinking right know, that it might be some version error.

    • @szerkan778
      @szerkan778 Рік тому

      @@techeducationnow I've realized that, when I use next app without typescript everything is completly fine, I am able to build app. However, when I build another project using --typescript, it is not working.. Can you try do it by yourself?