-
Notifications
You must be signed in to change notification settings - Fork 28.3k
Error: app-paths-manifest.json not found in .next/server/app/.../route (works when running npm run build && npm run start, fails in npm run dev) #76766
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
Comments
I attempted updating Next.js to canary with the following steps: npm install next@canary
Then, running the dev server again ( > [email protected] dev
> next dev --turbopack
▲ Next.js 15.2.1-canary.5 (Turbopack)
- Local: http://localhost:3000
- Network: http://192.168.2.216:3000
- Environments: .env.local
✓ Starting...
✓ Ready in 2.9s
○ Compiling /api/dummy/[signal_id]/something ...
✓ Compiled /api/dummy/[signal_id]/something in 1430ms
⨯ ./node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html
Unknown module type
This module doesn't have an associated type. Use a known file extension, or register a loader for it.
Read more: https://nextjs.org/docs/app/api-reference/next-config-js/turbo#webpack-loaders
./node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js:76:15
Module not found: Can't resolve 'aws-sdk'
74 |
75 | // if not mocking then setup real s3.
> 76 | const AWS = require('aws-sdk');
| ^^^^^^^^^^^^^^^^^^
...
...
GET /api/dummy/982h89f9082h3/something 500 in 2406ms After upgrading to Next.js 15.2.0 (canary), I’m now seeing these module resolution errors (e.g., |
This comment has been minimized.
This comment has been minimized.
Ideally this wouldn't be necessary, but add pulsar-client to the This is the file that causes these problems by pulling in |
@mischnic thanks for your findings. May I ask how do you found the root cause? I'm having the same issue in my project but I don't have |
That is the workaround/fix for this error:
|
Link to the code that reproduces this issue
https://github.com/TheodoreRed/reproduce-next-15.1.7-bug
To Reproduce
Clone the repo and install dependencies:
Start the dev server:
Make a GET request to:
Observe the error in the terminal:
Attempt removing the
.next
folder or clearing caches (e.g.,rm -rf .next
), then rerunnpm run dev
– the error persists.Build and run in production mode (
npm run build && npm run start
) – the error does not occur.Current vs. Expected behavior
Current Behavior:
ENOENT
error whenever a request is made to/api/dummy/[signal_id]/something
..next
folder does not fix the issue.Expected Behavior:
app-paths-manifest.json
when making requests to the API route.Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: