#Nextjs + Bun + wrangler pages deployment issue

1 messages · Page 1 of 1 (latest)

thin notch
#

I get this error when trying to deploy, it does finish deploying sucessfully but at the end it seems like its unhappy with the type of options but im not passing any as they are optional.

{
  "name": "xxx",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint",
    "build:worker": "opennextjs-cloudflare",
"dev:worker": "bunx wrangler dev --port 8771",
"preview:worker": "bun run build:worker && bun run dev:worker",
"deploy:worker": "bun run build:worker && bunx wrangler deploy"
  },
  "dependencies": {
    "@opennextjs/cloudflare": "^0.5.12",
    "@radix-ui/react-progress": "^1.1.2",
    "@radix-ui/react-select": "^2.1.6",
    "@radix-ui/react-slot": "^1.1.2",
    "@radix-ui/react-tabs": "^1.1.3",
    "@tailwindcss/postcss": "^4.0.14",
    "class-variance-authority": "^0.7.1",
    "clsx": "^2.1.1",
    "lucide-react": "^0.483.0",
    "next": "^15.2.3",
    "postcss": "^8.5.3",
    "react": "^19.0.0",
    "react-dom": "^19.0.0",
    "recharts": "^2.15.1",
    "tailwind-merge": "^3.0.2",
    "tailwindcss": "^4.0.14",
    "tailwindcss-animate": "^1.0.7"
  },
  "devDependencies": {
    "autoprefixer": "^10.4.21"
  },
  "engines": {
    "node": ">=20.0.0"
  }
}
name = "xxx-xxx-xxx"
main = ".open-next/worker.js"
compatibility_date = "2024-09-23"
compatibility_flags = ["nodejs_compat"]

[assets]
directory = ".open-next/assets"
binding = "ASSETS"

[[kv_namespaces]]
binding = "NEXT_CACHE_WORKERS_KV"
id = "xxx"

Let me know if you wanna look at some other file

#

for now its just a cosmetic error

thin notch
#

Fixed it. It was a node version mismatch thing. I recently switched to a new shell and node wasn't added to $PATH.