pages-manifest not found. Check if `next.config.js` target is set to 'serverless
See original GitHub issueI know this issue has been closed a couple of times but I’ve run through the steps to fix and I’m still having the same issues. Any help would be really appreciated!
I’m running the serverless
command in AWS codebuild and I have target: "serverless"
as stated in the docs. This is the error I’m seeing:
pages-manifest not found. Check if
next.config.js target is set to 'serverless
I’ve listed the files in the .next/serverless
folder and I can see:
init-server.js
on-error-server.js
pages
pages-manifest.json
This is my serverless file:
nextApp:
component: serverless-next.js@1.10.0
I have both serverless and serverless-next.js packages installed:
"serverless": "^1.61.1",
"serverless-next.js": "^1.10.0",
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
pages-manifest not found. Check if `next.config.js` target is set ...
I know it is closed via other issue. #447 However, in my case, i am still watching the error while deploying. My serverless.yml...
Read more >pages-manifest not found. Check if `next.config.js` target is set ...
I know it is closed via other issue. #447. However, in my case, i am still watching the error while deploying. My serverless.yml...
Read more >Luke Marsh on Twitter: "Attempting to deploy #nextjs to #aws ...
pages-manifest not found. Check if `next.config.js` target is set to 'serverless · Issue #447 ·... I know this issue has been closed a...
Read more >Getting `Cannot find module '.next\server\pages-manifest.json ...
js . When I remove this file, everything works fine. As soon as I add the babel.config.js file, I get this error
Read more >Next.js on Netlify
For manual configuration, check out the typical build settings for Next.js. serverless target deprecated. The serverless and experimental-serverless-trace ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @danielcondemarin I have managed to deploy finally! This was the config setting I used:
I get the same error as above when running in Codebuild. I will try useServerlessTraceTarget first thing in the morning and let you know the results. Thanks again!