Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next.js build fails on 22.6.1 #402

Open
jfstn opened this issue Jan 11, 2025 · 1 comment
Open

Next.js build fails on 22.6.1 #402

jfstn opened this issue Jan 11, 2025 · 1 comment

Comments

@jfstn
Copy link

jfstn commented Jan 11, 2025

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)
@haardikk21
Copy link

haardikk21 commented Jan 20, 2025

+1
Also true for @stacks/connect at version 7.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants