Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unexpected error: unable to detect the node_modules/next/dist directory #217

Open
rohilpinto opened this issue Dec 30, 2024 · 1 comment
Labels
bug Something isn't working needs repro triage

Comments

@rohilpinto
Copy link

Describe the bug

I"m using next.js 15 and when i try the build command
"build:worker": "opennextjs-cloudflare"
i get
Unexpected error: unable to detect the node_modules/next/dist directory
error
i'm using turbo repo for mono repo

i checked my node_modules, it shows the dist folder
image

Steps to reproduce

execute "build:worker": "opennextjs-cloudflare" in a mono repo setup

Expected behavior

a successful build

@opennextjs/cloudflare version

0.3.3

Wrangler version

3.99.0

next info output

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Pro
  Available memory (MB): 16310
  Available CPU cores: 8
Binaries:
  Node: 20.13.1
  npm: 10.5.2
  Yarn: 1.22.22
  pnpm: N/A
Relevant Packages:
  next: 15.1.2 // There is a newer version (15.1.3) available, upgrade recommended!
  eslint-config-next: 14.1.4
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.4.3
Next.js Config:
  output: N/A
 ⚠ There is a newer version (15.1.3) available, upgrade recommended! 
   Please try the latest canary version (`npm install next@canary`) to confirm the issue still exists before creating a new issue.        
   Read more - https://nextjs.org/docs/messages/opening-an-issue
Done in 2.63s.

Additional context

No response

@dario-piotrowicz
Copy link
Contributor

Hi @rohilpinto 🙂 , thanks for the issue

I've just set up a turborepo using npm and could not reproduce this issue, could you maybe share a github repo with a minimal reproduction of this? 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs repro triage
Development

No branches or pull requests

2 participants