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.

Cannot find .serverless_nextjs/default-lambda/manifest.json

See original GitHub issue

Issue Summary

Hello There, I’m trying to deploy my application using serverless-next.js but while running the npx serverless I get this error.

  error:
  [Error: ENOENT: no such file or directory, open '~~~~~~/.serverless_nextjs/default-lambda/manifest.json'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '~~~~~/renderer/.serverless_nextjs/default-lambda/manifest.json'

Actual behavior

Expected behavior

Steps to reproduce

Screenshots/Code/Configuration/Logs

app:
  component: '@sls-next/serverless-component'
  inputs:
    distributionId: ***
    bucketName: ***
    nextConfigDir: ./renderer
    nextStaticDir: ./renderer
    memory: 1024
    build: false
    verbose: true

I build the app manually because of some additional configuration.

Versions

Additional context

Checklist

  • You have reviewed the README and FAQs, which answers several common questions.
  • You have reviewed our DEBUGGING wiki and have tried your best to include complete information and reproduction steps (including your configuration) as is possible.
  • You have first tried using the most recent latest or alpha @sls-next/serverless-component release version, which may have already fixed your issue or implemented the feature you are trying to use. Note that the old serverless-next.js component and the serverless-next.js plugin are deprecated and no longer maintained.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
maximgeerinckcommented, Nov 26, 2021

same issue, ':' didn’t work, 'true' did though

0reactions
wguerramcommented, Nov 12, 2021

@alirezavlz there must be something else in your setup, I’m doing exactly that and works for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build Next.js app before deploying via Serverless Component
The reason the manifest.json file isn't present is because Next.js builds to .next and the Next.js Serverless Component builds to .
Read more >
serverless-nextjs-lambda-binary-fix - npm package - Snyk
We found a way for you to contribute to the project! Looks like serverless-nextjs-lambda-binary-fix is missing a security policy.
Read more >
Build an API with Serverless Functions in Next.js
In this blog, we'll learn about Next.js serverless functions. We'll discuss page and dynamic routes, as well as API and dynamic API routes....
Read more >
serverless-nextjs-plugin - Bountysource
The Lambda function associated with the CloudFront distribution is invalid or doesn't have the required permissions. We can't connect to the server for...
Read more >
Deploy your Next.js apps on AWS Lambda via Serverless ...
However, Next.js doesn't provide the full serverless routing logic, ... We also automatically detect and copy the default configuration files if you are ......
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