Skip to content

Build never finishes in v3.69.0 #15006

@siimsams

Description

@siimsams

Describe the Bug

After upgrading to v3.69.0 the build hangs and never finishes. When I roll back and remove the new module from importmap.js it starts to finish builds again.

➜  manager git:(siim/ayr-38-migrate-old-project-to-drizzle) pnpm run build

> [email protected] build /Users/siimsams/isekallur/agm-monorepo/apps/manager
> cross-env NODE_OPTIONS="--no-deprecation --max-old-space-size=8000" next build

   ▲ Next.js 15.4.10
   - Environments: .env
   - Experiments (use with caution):
     ✓ useCache
     ✓ optimizeCss

   Creating an optimized production build ...
 ⚠ Compiled with warnings in 10.0s

../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/payload/dist/database/migrations/readMigrationFiles.js
Critical dependency: the request of a dependency is an expression

Import trace for requested module:
../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/payload/dist/database/migrations/readMigrationFiles.js
../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/payload/dist/index.js
./src/app/(frontend)/api/health/route.ts

../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/payload/dist/queues/operations/runJobs/runJob/importHandlerPath.js
Critical dependency: the request of a dependency is an expression

Import trace for requested module:
../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/payload/dist/queues/operations/runJobs/runJob/importHandlerPath.js
../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/payload/dist/index.js
./src/app/(frontend)/api/health/route.ts
test git:(main) pnpm run build

> [email protected] build /Users/siimsams/projects/test
> cross-env NODE_OPTIONS="--no-deprecation --max-old-space-size=8000" next build

   ▲ Next.js 15.4.10
   - Environments: .env

   Creating an optimized production build ...
 ⚠ Compiled with warnings in 15.0s

./node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/payload/dist/queues/operations/runJobs/runJob/importHandlerPath.js
Critical dependency: the request of a dependency is an expression

Import trace for requested module:
./node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/payload/dist/queues/operations/runJobs/runJob/importHandlerPath.js
./node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/payload/dist/index.js
./src/payload.config.ts
./src/app/my-route/route.ts

   Linting and checking validity of types  . ⨯ ESLint: Cannot find package '@eslint/eslintrc' imported from /Users/siimsams/projects/test/eslint.config.mjs Did you mean to import "@eslint/eslintrc/dist/eslintrc.cjs"?

Link to the code that reproduces this issue

https://github.com/siimsams/reproduction

Reproduction Steps

Pull down the latest version and use postgresql. Run build and observe

  1. pnpx create-payload-app@latest -t blank
  2. cd project
  3. pnpm run build

Which area(s) are affected?

area: graphql

Environment Info

➜  test git:(main) pnpm payload info

> [email protected] payload /Users/siimsams/projects/test
> cross-env NODE_OPTIONS=--no-deprecation payload info

npm warn Unknown env config "_company-registry-registry". This will stop working in the next major version of npm.
npm warn Unknown env config "_grindset-registry". This will stop working in the next major version of npm.
npm warn Unknown env config "verify-deps-before-run". This will stop working in the next major version of npm.
npm warn Unknown env config "_jsr-registry". This will stop working in the next major version of npm.

Binaries:
  Node: 22.16.0
  npm: 11.7.0
  Yarn: N/A
  pnpm: 10.12.3
Relevant Packages:
  payload: 3.69.0
  next: 15.4.10
  @payloadcms/db-postgres: 3.69.0
  @payloadcms/drizzle: 3.69.0
  @payloadcms/graphql: 3.69.0
  @payloadcms/next/utilities: 3.69.0
  @payloadcms/richtext-lexical: 3.69.0
  @payloadcms/translations: 3.69.0
  @payloadcms/ui/shared: 3.69.0
  react: 19.2.1
  react-dom: 19.2.1
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 25.1.0: Mon Oct 20 19:32:41 PDT 2025; root:xnu-12377.41.6~2/RELEASE_ARM64_T6000
  Available memory (MB): 32768
  Available CPU cores: 10

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions