Cannot find .serverless_nextjs/default-lambda/manifest.json
See original GitHub issueIssue 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
- OS/Environment: macOS
- @sls-next/serverless-component version: latest
- Next.js version: “^12.0.2”
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
oralpha
@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 oldserverless-next.js
component and theserverless-next.js
plugin are deprecated and no longer maintained.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top 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 >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
same issue,
':'
didn’t work,'true'
did though@alirezavlz there must be something else in your setup, I’m doing exactly that and works for me.