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
Describe the bug
Updating @stacks/connect-react from 22.5.0 to 22.6.1 makes next build fail on page pre-rendering.
Expected behavior
Updating the minor version should still allow Next.js to build and pre-render the pages that were being pre-rendered before.
Running next build:
Error occurred prerendering page "/page". Read more: https://nextjs.org/docs/messages/prerender-error
ReferenceError: window is not defined
at 58777 (/next/.next/server/chunks/634.js:156:63815)
at t (/next/.next/server/webpack-runtime.js:1:143)
at 92464 (/next/.next/server/chunks/40.js:30:33731)
at t (/next/server/webpack-runtime.js:1:143)
at 16219 (/next/server/chunks/40.js:30:37169)
at t (/next/server/webpack-runtime.js:1:143)
at 36501 (/next/.next/server/app/points/page.js:1:6100)
at Object.t [as require] (/next/.next/server/webpack-runtime.js:1:143)
at require (/next/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:16:18490)
at I (/next/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:94362)
✓ Generating static pages (10/10)
The text was updated successfully, but these errors were encountered:
Describe the bug
Updating
@stacks/connect-react
from22.5.0
to22.6.1
makesnext build
fail on page pre-rendering.Expected behavior
Updating the minor version should still allow Next.js to build and pre-render the pages that were being pre-rendered before.
Running
next build
:The text was updated successfully, but these errors were encountered: