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
v0.5.1 does call window reference and handles it if it doesn't exist.
in v^1.xx.xx it calls window which doesn't allow ssr.
For those wondering any ANT DESIGN users who use the latest version (^3.23.1) ismobilejs is used by some packages and has updated to ismobilejs v1.xx.xx.
In your package.json in resolutions place ismobilejs as 0.5.1 for ssr
The text was updated successfully, but these errors were encountered:
victorthevong
changed the title
v^1.xx.xx dosnt support ssr in react
v^1.xx.xx doesn't support ssr in react by referencing window
Sep 4, 2019
We use Next.js framework with Ant Design and had the same problem with this due to natively SSR feature of the Next.js. The workaround is to use Dependency Resolutions to fix the version back to 0.5.1. https://www.npmjs.com/package/npm-force-resolutions
v0.5.1 does call window reference and handles it if it doesn't exist.
in v^1.xx.xx it calls window which doesn't allow ssr.
For those wondering any ANT DESIGN users who use the latest version (^3.23.1) ismobilejs is used by some packages and has updated to ismobilejs v1.xx.xx.
In your package.json in resolutions place ismobilejs as 0.5.1 for ssr
The text was updated successfully, but these errors were encountered: