next.js: Build failing after moving from 13.4.19 to 13.5.6
Link to the code that reproduces this issue
https://github.com/cubik-so/cubik
To Reproduce
- git clone main branch
- bump version to 13.5.6 in
apps/cubik-web
pnpm install
pnpm build --filter=cubik-web
Current vs. Expected behavior
Current behavior:
> cubik@ build /Users/sayanbiswas/Projects/cubik
> dotenv -- turbo run build "--filter=cubik-web"
• Packages in scope: cubik-web
• Running build in 1 packages
• Remote caching disabled
@cubik/database:db:generate: cache bypass, force executing e9ff49b046588ef6
@cubik/database:db:generate:
@cubik/database:db:generate: > @cubik/database@ db:generate /Users/sayanbiswas/Projects/cubik/packages/database
@cubik/database:db:generate: > prisma generate
@cubik/database:db:generate:
@cubik/database:db:generate: Prisma schema loaded from prisma/schema.prisma
@cubik/database:db:generate:
@cubik/database:db:generate: ✔ Generated Prisma Client (5.1.1 | library) to ./../../node_modules/.pnpm/@prisma+client@5.1.1_prisma@5.1.1/node_modules/@prisma/client in 178ms
@cubik/database:db:generate: You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client
@cubik/database:db:generate: ```
@cubik/database:db:generate: import { PrismaClient } from '@prisma/client'
@cubik/database:db:generate: const prisma = new PrismaClient()
@cubik/database:db:generate: ```
cubik-web:build: cache miss, executing 0dd7a4a04e982d08
cubik-web:build:
cubik-web:build: > cubik-web@0.1.0 build /Users/sayanbiswas/Projects/cubik/apps/cubik-web
cubik-web:build: > next build
cubik-web:build:
cubik-web:build: ⚠ You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env
cubik-web:build: ⚠ Invalid next.config.mjs options detected:
cubik-web:build: ⚠ Unrecognized key(s) in object: 'appDir' at "experimental"
cubik-web:build: ⚠ See more info here: https://nextjs.org/docs/messages/invalid-next-config
cubik-web:build: ⚠ App router is available by default now, `experimental.appDir` option can be safely removed.
cubik-web:build: Creating an optimized production build ...
cubik-web:build: Skipping validation of types
cubik-web:build: Linting ...
cubik-web:build: ⚠ Compiled with warnings
cubik-web:build:
cubik-web:build: ../../node_modules/.pnpm/node-fetch@2.6.12/node_modules/node-fetch/lib/index.js
cubik-web:build: Module not found: Can't resolve 'encoding' in '/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/node-fetch@2.6.12/node_modules/node-fetch/lib'
cubik-web:build:
cubik-web:build: Import trace for requested module:
cubik-web:build: ../../node_modules/.pnpm/node-fetch@2.6.12/node_modules/node-fetch/lib/index.js
cubik-web:build: ../../node_modules/.pnpm/@solana+web3.js@1.78.4/node_modules/@solana/web3.js/lib/index.cjs.js
cubik-web:build: ../../node_modules/.pnpm/@coral-xyz+anchor@0.27.0/node_modules/@coral-xyz/anchor/dist/cjs/index.js
cubik-web:build: ../../packages/auth/src/verifyMessage.ts
cubik-web:build: ../../packages/auth/index.ts
cubik-web:build: ./src/app/create/project/components/createProjects.ts
cubik-web:build:
cubik-web:build: ../../node_modules/.pnpm/node-fetch@2.6.12/node_modules/node-fetch/lib/index.js
cubik-web:build: Module not found: Can't resolve 'encoding' in '/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/node-fetch@2.6.12/node_modules/node-fetch/lib'
cubik-web:build:
cubik-web:build: Import trace for requested module:
cubik-web:build: ../../node_modules/.pnpm/node-fetch@2.6.12/node_modules/node-fetch/lib/index.js
cubik-web:build: ../../node_modules/.pnpm/@solana+web3.js@1.78.4/node_modules/@solana/web3.js/lib/index.cjs.js
cubik-web:build: ../../node_modules/.pnpm/@coral-xyz+anchor@0.27.0/node_modules/@coral-xyz/anchor/dist/cjs/index.js
cubik-web:build: ./src/app/api/auth/verify/route.ts
cubik-web:build:
cubik-web:build: ../../node_modules/.pnpm/node-fetch@2.6.12/node_modules/node-fetch/lib/index.js
cubik-web:build: Module not found: Can't resolve 'encoding' in '/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/node-fetch@2.6.12/node_modules/node-fetch/lib'
cubik-web:build:
cubik-web:build: Import trace for requested module:
cubik-web:build: ../../node_modules/.pnpm/node-fetch@2.6.12/node_modules/node-fetch/lib/index.js
cubik-web:build: ../../node_modules/.pnpm/@solana+web3.js@1.78.4/node_modules/@solana/web3.js/lib/index.cjs.js
cubik-web:build: ./src/app/components/wallet/context.tsx
cubik-web:build:
cubik-web:build: ⨯ ESLint: Failed to load config "@cubik/config/eslint/base" to extend from. Referenced from: /Users/sayanbiswas/Projects/cubik/apps/cubik-web/package.json
cubik-web:build: Collecting page data ...
cubik-web:build: bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
cubik-web:build: bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
cubik-web:build: bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
cubik-web:build: bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
cubik-web:build: ⚠ Using edge runtime on a page currently disables static generation for that page
cubik-web:build: bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
cubik-web:build: Generating static pages (0/19) ...
cubik-web:build: eS [Error]: Dynamic server usage: Page couldn't be rendered statically because it used `nextUrl.searchParams`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
cubik-web:build: at Object.e_ [as staticGenerationBailout] (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:14:27571)
cubik-web:build: at n (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:14:31542)
cubik-web:build: at Object.get (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:14:32189)
cubik-web:build: at GET (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/app/api/redirect/route.js:1:477)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:14:39715
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/lib/trace/tracer.js:121:36
cubik-web:build: at NoopContextManager.with (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7057)
cubik-web:build: at ContextAPI.with (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:516)
cubik-web:build: at NoopTracer.startActiveSpan (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18086)
cubik-web:build: at ProxyTracer.startActiveSpan (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18847) {
cubik-web:build: digest: 'DYNAMIC_SERVER_USAGE'
cubik-web:build: }
cubik-web:build:
Generating static pages (4/19)
cubik-web:build: Error: <Html> should not be imported outside of pages/_document.
cubik-web:build: Read more: https://nextjs.org/docs/messages/no-document-import-in-page
cubik-web:build: at ei (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js:38:4358)
cubik-web:build: at Html (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/4528.js:6:1327)
cubik-web:build: at renderWithHooks (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5658:16)
cubik-web:build: at renderIndeterminateComponent (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5731:15)
cubik-web:build: at renderElement (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5946:7)
cubik-web:build: at renderNodeDestructiveImpl (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:6104:11)
cubik-web:build: at renderNodeDestructive (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:6076:14)
cubik-web:build: at finishClassComponent (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5688:3)
cubik-web:build: at renderClassComponent (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5696:3)
cubik-web:build: at renderElement (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5943:7)
cubik-web:build:
cubik-web:build: Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
cubik-web:build: Error: <Html> should not be imported outside of pages/_document.
cubik-web:build: Read more: https://nextjs.org/docs/messages/no-document-import-in-page
cubik-web:build: at ei (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js:38:4358)
cubik-web:build: at Html (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/4528.js:6:1327)
cubik-web:build: at renderWithHooks (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5658:16)
cubik-web:build: at renderIndeterminateComponent (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5731:15)
cubik-web:build: at renderElement (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5946:7)
cubik-web:build: at renderNodeDestructiveImpl (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:6104:11)
cubik-web:build: at renderNodeDestructive (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:6076:14)
cubik-web:build: at finishClassComponent (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5688:3)
cubik-web:build: at renderClassComponent (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5696:3)
cubik-web:build: at renderElement (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5943:7)
cubik-web:build: Error: <Html> should not be imported outside of pages/_document.
cubik-web:build: Read more: https://nextjs.org/docs/messages/no-document-import-in-page
cubik-web:build: at ei (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js:38:4358)
cubik-web:build: at Html (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/4528.js:6:1327)
cubik-web:build: at renderWithHooks (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5658:16)
cubik-web:build: at renderIndeterminateComponent (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5731:15)
cubik-web:build: at renderElement (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5946:7)
cubik-web:build: at renderNodeDestructiveImpl (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:6104:11)
cubik-web:build: at renderNodeDestructive (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:6076:14)
cubik-web:build: at finishClassComponent (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5688:3)
cubik-web:build: at renderClassComponent (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5696:3)
cubik-web:build: at renderElement (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5943:7)
cubik-web:build:
cubik-web:build: Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
cubik-web:build: Error: <Html> should not be imported outside of pages/_document.
cubik-web:build: Read more: https://nextjs.org/docs/messages/no-document-import-in-page
cubik-web:build: at ei (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js:38:4358)
cubik-web:build: at Html (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/4528.js:6:1327)
cubik-web:build: at renderWithHooks (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5658:16)
cubik-web:build: at renderIndeterminateComponent (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5731:15)
cubik-web:build: at renderElement (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5946:7)
cubik-web:build: at renderNodeDestructiveImpl (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:6104:11)
cubik-web:build: at renderNodeDestructive (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:6076:14)
cubik-web:build: at finishClassComponent (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5688:3)
cubik-web:build: at renderClassComponent (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5696:3)
cubik-web:build: at renderElement (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5943:7)
cubik-web:build: bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
cubik-web:build:
Generating static pages (9/19)
cubik-web:build: ⨯ TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at t.useContext (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js:51:7717)
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: at al (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:7377)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:12156
cubik-web:build: at aS (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13910)
cubik-web:build: at e (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:47308)
cubik-web:build: at a_ (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:49286)
cubik-web:build: at ab (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:8795)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13886
cubik-web:build:
cubik-web:build: Error occurred prerendering page "/_not-found". Read more: https://nextjs.org/docs/messages/prerender-error
cubik-web:build: TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at t.useContext (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js:51:7717)
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: at al (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:7377)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:12156
cubik-web:build: at aS (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13910)
cubik-web:build: at e (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:47308)
cubik-web:build: at a_ (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:49286)
cubik-web:build: at ab (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:8795)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13886
cubik-web:build: ⨯ TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at t.useContext (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js:51:7717)
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: at al (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:7377)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:12156
cubik-web:build: at aS (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13910)
cubik-web:build: at e (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:47308)
cubik-web:build: at a_ (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:49286)
cubik-web:build: at ab (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:8795)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13886
cubik-web:build:
cubik-web:build: Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
cubik-web:build: TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at t.useContext (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js:51:7717)
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: at al (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:7377)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:12156
cubik-web:build: at aS (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13910)
cubik-web:build: at e (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:47308)
cubik-web:build: at a_ (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:49286)
cubik-web:build: at ab (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:8795)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13886
cubik-web:build:
Generating static pages (14/19)
cubik-web:build:
cubik-web:build: ⚠ metadata.metadataBase is not set for resolving social open graph or twitter images, using "http://localhost:8000". See https://nextjs.org/docs/app/api-reference/functions/generate-metadata#metadatabase
cubik-web:build: ⨯ TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at t.useContext (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js:51:7717)
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: at al (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:7377)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:12156
cubik-web:build: at aS (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13910)
cubik-web:build: at e (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:47308)
cubik-web:build: at a_ (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:49286)
cubik-web:build: at ab (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:8795)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13886
cubik-web:build:
cubik-web:build: Error occurred prerendering page "/hackathons". Read more: https://nextjs.org/docs/messages/prerender-error
cubik-web:build: TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at t.useContext (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js:51:7717)
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: at al (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:7377)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:12156
cubik-web:build: at aS (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13910)
cubik-web:build: at e (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:47308)
cubik-web:build: at a_ (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:49286)
cubik-web:build: at ab (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:8795)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13886
cubik-web:build: ⨯ TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at t.useContext (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js:51:7717)
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: at al (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:7377)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:12156
cubik-web:build: at aS (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13910)
cubik-web:build: at e (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:47308)
cubik-web:build: at a_ (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:49286)
cubik-web:build: at ab (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:8795)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13886
cubik-web:build:
cubik-web:build: Error occurred prerendering page "/create/profile". Read more: https://nextjs.org/docs/messages/prerender-error
cubik-web:build: TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at t.useContext (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js:51:7717)
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: at al (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:7377)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:12156
cubik-web:build: at aS (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13910)
cubik-web:build: at e (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:47308)
cubik-web:build: at a_ (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:49286)
cubik-web:build: at ab (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:8795)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13886
cubik-web:build: ⨯ TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at t.useContext (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js:51:7717)
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: at al (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:7377)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:12156
cubik-web:build: at aS (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13910)
cubik-web:build: at e (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:47308)
cubik-web:build: at a_ (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:49286)
cubik-web:build: at ab (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:8795)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13886
cubik-web:build:
cubik-web:build: Error occurred prerendering page "/grants". Read more: https://nextjs.org/docs/messages/prerender-error
cubik-web:build: TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at t.useContext (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js:51:7717)
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: at al (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:7377)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:12156
cubik-web:build: at aS (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13910)
cubik-web:build: at e (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:47308)
cubik-web:build: at a_ (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:49286)
cubik-web:build: at ab (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:8795)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13886
cubik-web:build: bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
cubik-web:build: ⨯ TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at t.useContext (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js:51:7717)
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: at al (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:7377)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:12156
cubik-web:build: at aS (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13910)
cubik-web:build: at e (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:47308)
cubik-web:build: at a_ (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:49286)
cubik-web:build: at ab (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:8795)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13886
cubik-web:build:
cubik-web:build: Error occurred prerendering page "/create/project". Read more: https://nextjs.org/docs/messages/prerender-error
cubik-web:build: TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at t.useContext (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js:51:7717)
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: at al (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:7377)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:12156
cubik-web:build: at aS (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13910)
cubik-web:build: at e (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:47308)
cubik-web:build: at a_ (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:49286)
cubik-web:build: at ab (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:8795)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13886
cubik-web:build: ⨯ TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at t.useContext (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js:51:7717)
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: at al (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:7377)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:12156
cubik-web:build: at aS (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13910)
cubik-web:build: at e (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:47308)
cubik-web:build: at a_ (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:49286)
cubik-web:build: at ab (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:8795)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13886
cubik-web:build:
cubik-web:build: Error occurred prerendering page "/projects". Read more: https://nextjs.org/docs/messages/prerender-error
cubik-web:build: TypeError: Cannot read properties of null (reading 'useContext')
cubik-web:build: at t.useContext (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js:51:7717)
cubik-web:build: at usePathname (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:27092)
cubik-web:build: at ErrorBoundary (/Users/sayanbiswas/Projects/cubik/apps/cubik-web/.next/server/chunks/253.js:236:16748)
cubik-web:build: at al (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:7377)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:12156
cubik-web:build: at aS (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13910)
cubik-web:build: at e (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:47308)
cubik-web:build: at a_ (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:49286)
cubik-web:build: at ab (/Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:8795)
cubik-web:build: at /Users/sayanbiswas/Projects/cubik/node_modules/.pnpm/next@13.5.6_@babel+core@7.22.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:34:13886
cubik-web:build:
✓ Generating static pages (19/19)
cubik-web:build:
cubik-web:build: > Export encountered errors on following paths:
cubik-web:build: /_error: /404
cubik-web:build: /_error: /500
cubik-web:build: /_not-found
cubik-web:build: /create/profile/page: /create/profile
cubik-web:build: /create/project/page: /create/project
cubik-web:build: /grants/page: /grants
cubik-web:build: /hackathons/page: /hackathons
cubik-web:build: /page: /
cubik-web:build: /projects/page: /projects
cubik-web:build: ELIFECYCLE Command failed with exit code 1.
Tasks: 1 successful, 2 total
Cached: 0 cached, 2 total
Time: 14.496s
Failed: cubik-web#build
ELIFECYCLE Command failed with exit code 1.
Expected behavior: successful build
Verify canary release
- I verified that the issue exists in the latest Next.js canary release
Provide environment information
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 23.0.0: Fri Sep 15 14:41:34 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T8103
Binaries:
Node: 20.8.1
npm: 10.1.0
Yarn: 1.22.19
pnpm: 8.9.2
Relevant Packages:
next: 13.5.6
eslint-config-next: N/A
react: 18.2.0
react-dom: 18.2.0
typescript: N/A
Next.js Config:
output: N/A
Which area(s) are affected? (Select all that apply)
App Router
Additional context
OS: macOS 14.0 23A344 arm64
Host: MacBookAir10,1
Kernel: 23.0.0
Uptime: 11 days, 5 hours, 22 mins
Packages: 99 (brew)
Shell: zsh 5.9
Resolution: 1440x900
DE: Aqua
WM: Quartz Compositor
WM Theme: Blue (Dark)
Terminal: Apple_Terminal
Terminal Font: SFMono-Regular
CPU: Apple M1
GPU: Apple M1
Memory: 1355MiB / 8192MiB
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Reactions: 16
- Comments: 30 (5 by maintainers)
The error is still present with 14.0.0. I have two custom error pages, one for
404
(not-found.tsx
) and500
(error.tsx
), but the errors still fail prerendering/404
and/500
(they both display just fine in dev mode):The static page generation is annoying. There should be an option to generate static content on demand instead of at build time.
The NODE_ENV has nothing to do with it in my case, just tried it again with
14.0.2
, same thing…It tries to generate 19 (!) static pages
And this is building with version
13.4.19
which is correct:I went through the comments above that seems could caused by different issues, the original reproduction link in the issue is 404 for me. Would be super helpful if anyone can post a reproduction with their specific case which can help us address this issue. Thanks
@huozhi ^^
We’re experiencing the same issue. Does this occur when the NODE_ENV environment variable is set to “production”, or only when it is set to “development” and other custom values?