Skip to content

nodeMiddleware / runtime: "nodejs" not working #12844

Open
@pranavmappoli

Description

@pranavmappoli

Environment

  System:
    OS: macOS 15.3.2
    CPU: (12) arm64 Apple M3 Pro
    Memory: 2.80 GB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.12.1 - ~/.nvm/versions/node/v20.12.1/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v20.12.1/bin/yarn
    npm: 10.5.0 - ~/.nvm/versions/node/v20.12.1/bin/npm
    pnpm: 9.7.0 - ~/.nvm/versions/node/v20.12.1/bin/pnpm
  Browsers:
    Chrome: 134.0.6998.166
    Edge: 134.0.3124.95
    Safari: 18.3.1
  npmPackages:
    @auth/prisma-adapter: ^2.7.4 => 2.7.4 
    next: 15.2.0-canary.67 => 15.2.0-canary.67 
    next-auth: 5.0.0-beta.25 => 5.0.0-beta.25 
    react: 19.0.0 => 19.0.0 

Reproduction URL

https://github.com/webcrafterhub/tools

Describe the issue

when i set to nodemiddleware like below

const nextConfig: NextConfig = {
	experimental: {
		reactCompiler: true,
		ppr: "incremental",
		nodeMiddleware: true,
	},
};

this breaking the application. Please help
using auth5-beta-25
nextjs 15.2 -beta

How to reproduce

use nodeMiddleware: true as above
in middlware put
runtime: "nodejs"

Expected behavior

page should work

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions