You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, nice component, but it does not seem to work with React server-side rendering, as it uses the window object, which is only available on the client.
ReferenceError: window is not defined
at Object.get (/node_modules/emoji-mart/dist/emoji-mart.js:919:28)
at Object.defineProperty.value (/node_modules/emoji-mart/dist/emoji-mart.js:865:35)
at __webpack_require__ (/node_modules/emoji-mart/dist/emoji-mart.js:30:30)
at Object.defineProperty.value (/node_modules/emoji-mart/dist/emoji-mart.js:609:20)
at __webpack_require__ (/node_modules/emoji-mart/dist/emoji-mart.js:30:30)
at Object.defineProperty.value (/node_modules/emoji-mart/dist/emoji-mart.js:116:18)
at __webpack_require__ (/node_modules/emoji-mart/dist/emoji-mart.js:30:30)
at Object.defineProperty.value /node_modules/emoji-mart/dist/emoji-mart.js:64:20)
at __webpack_require__ (/node_modules/emoji-mart/dist/emoji-mart.js:30:30)
at Object.defineProperty.value (/node_modules/emoji-mart/dist/emoji-mart.js:50:18)
The text was updated successfully, but these errors were encountered:
I've upgraded to React 18 and emoji-mart to 5.0.0, it seems this bug is happening again
Server Error
ReferenceError: window is not defined
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
<unknown>
/node_modules/emoji-mart/dist/index.js (1102:56)
ModuleJob.run
internal/modules/esm/module_job.js (183:25)
async Loader.import
internal/modules/esm/loader.js (178:24)
Hi, nice component, but it does not seem to work with React server-side rendering, as it uses the
window
object, which is only available on the client.The text was updated successfully, but these errors were encountered: