Skip to content
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

Starting SSR Build... Error #1067

Closed
2 tasks done
Industrial opened this issue May 11, 2021 · 4 comments
Closed
2 tasks done

Starting SSR Build... Error #1067

Industrial opened this issue May 11, 2021 · 4 comments

Comments

@Industrial
Copy link

Describe the bug

All of a sudden, builds started failing. I am getting this error:

2021-05-11T10:50:05.046Z [INFO]: Starting SSR Build...
2021-05-11T10:50:19.920Z [INFO]: Error

There is no more output then this. The actual error is not displayed. Nothing changed in Source Control.

Is there anything I can do to enable debug logging, for example?

Versions

  • OS/Environment: AWS Amplify
  • @sls-next/serverless-component version: 1.19.1.alpha4
  • Next.js version: 10.2.0

Checklist

  • You have reviewed the README and FAQs, which answers several common questions.
  • Please first try 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.
@dphang
Copy link
Collaborator

dphang commented May 21, 2021

Did it happen randomly or did you upgrade Next.js or this component? I've updated the tests to the newest Next.js version as well just now but haven't seen it there or on my own projects.

You should be able to run serverless --debug to see more logs. I'm not sure I can help much unless I have a repro, does anyone have a repo with this issue?

@Musashi-Sakamoto
Copy link

Musashi-Sakamoto commented May 28, 2021

@Industrial
I had the same problem.
Looks like you have to configure your app to be detected as SSG.
aws-amplify/amplify-hosting#412 (comment)

@Industrial
Copy link
Author

Thanks!

@heysuraj1
Copy link

@Musashi-Sakamoto Thanks for this answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants