DevExpress / devextreme-react

React UI and data visualization components
https://js.devexpress.com/Demos/
MIT License
161 stars 65 forks source link

An issue arises from the window code. #841

Open Pixel-Tao opened 1 year ago

Pixel-Tao commented 1 year ago

https://github.com/DevExpress/devextreme-react/blob/65f8034ccc578d23b58c8fea46ed922f70eb6177/packages/devextreme-react/src/core/configuration/utils.ts#L34

image

image

This issue occurs in Next.js. It arises when the server-side rendering (SSR) cannot find the window object. I tried to make it render on the client-side (CSR), but the server still throws an error. Is there a solution?