-
Notifications
You must be signed in to change notification settings - Fork 73
Closed
Labels
Description
Describe the bug
after udpate to 0.5.0
using npm run preview:worker
node:fs:3003
binding.copyFile(
Error: ENOENT: no such file or directory, copyfile 'xxx/node_modules/next/dist/compiled/@vercel/og/index.edge.js' -> 'xxx/.open-next/server-functions/default/xxx/node_modules/next/dist/compiled/@vercel/og/index.edge.js'
at copyFileSync (node:fs:3003:11)
at patchVercelOgLibrary (file:///xxx/node_modules/@opennextjs/cloudflare/dist/cli/build/patches/ast/patch-vercel-og-library.js:25:13)
at bundleServer (file:///xxx/node_modules/@opennextjs/cloudflare/dist/cli/build/bundle-server.js:44:5)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async build (file:///xxx/node_modules/@opennextjs/cloudflare/dist/cli/build/build.js:71:5)
at async file:///xxx/node_modules/@opennextjs/cloudflare/dist/cli/index.js:7:1 {
errno: -2,
code: 'ENOENT',
syscall: 'copyfile',
path: '/xxx/node_modules/next/dist/compiled/@vercel/og/index.edge.js',
dest: '/xxx/.open-next/server-functions/default/xxx/node_modules/next/dist/compiled/@vercel/og/index.edge.js'
}
Node.js v20.10.0
Steps to reproduce
git clone https://github.com/j4tmr/copyfile-error
cd copyfile-error
npm install
cd apps/web
npm run preview
Expected behavior
@opennextjs/cloudflare version
0.5.0
Wrangler version
3.108.1
next info output
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:16 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6000
Available memory (MB): 65536
Available CPU cores: 10
Binaries:
Node: 20.10.0
npm: 10.9.2
Yarn: 1.22.19
pnpm: N/A
Relevant Packages:
next: 15.1.7 // Latest available version is detected (15.1.7).
eslint-config-next: 15.1.7
react: 19.0.0
react-dom: 19.0.0
typescript: 5.7.2
Next.js Config:
output: N/A
Additional context
No response