erdigokce / turkey-map-react

An out-of-the-box city map of Turkey for React JS applications.
https://www.npmjs.com/package/turkey-map-react
MIT License
73 stars 8 forks source link

ReferenceError: document is not defined #9

Closed selcukguler0 closed 2 years ago

selcukguler0 commented 2 years ago

using with Next.js

Server Error
ReferenceError: document is not defined

This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
Object.C.exports [as insertStyleElement]
file:///Users/selcuk/weather-app/node_modules/turkey-map-react/lib/index.js (2:9961)
Object.C.exports [as domAPI]
file:///Users/selcuk/weather-app/node_modules/turkey-map-react/lib/index.js (2:10174)
n
file:///Users/selcuk/weather-app/node_modules/turkey-map-react/lib/index.js (2:9095)
r
file:///Users/selcuk/weather-app/node_modules/turkey-map-react/lib/index.js (2:8981)
C.exports
file:///Users/selcuk/weather-app/node_modules/turkey-map-react/lib/index.js (2:9317)
<unknown>
file:///Users/selcuk/weather-app/node_modules/turkey-map-react/lib/index.js (2:11805)
erdigokce commented 2 years ago

Hi @selcukguler0,

Thank you for your participation in this repository. This bug is fixed in v1.1.4 version.