question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pages-manifest not found. Check if `next.config.js` target is set to 'serverless

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lukemarshdvcommented, Jun 17, 2020

Hi @danielcondemarin I have managed to deploy finally! This was the config setting I used:

nextApp:
  component: serverless-next.js@1.14.0
  inputs:
    build:
      cmd: node_modules/next/dist/bin/next
1reaction
lukemarshdvcommented, Jun 16, 2020

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found