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",
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
@@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.
@@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?
Excellent video Monika! Bests
Wow someone else in Vancouver uses react-leaflet with next js
Trevor, if you see this,
First!
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",
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
@@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.
@@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?