aws-amplify / amplify-hosting

AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications.
https://aws.amazon.com/amplify/hosting/
Apache License 2.0
460 stars 116 forks source link

Amplify has issue at SSR build #2924

Closed Readate closed 1 year ago

Readate commented 2 years ago

Hi, so I am trying to host my Next app with Amplify. My next app uses Apollo graphql.

While trying to build my app, everything compiles fine till it comes to the SSR build, here is the error

2022-08-12T02:54:47.814Z [INFO]: info - Compiled successfully 2022-08-12T02:54:47.817Z [INFO]: info - Collecting page data... 2022-08-12T02:54:50.011Z [INFO]: info - Generating static pages (0/15) 2022-08-12T02:54:50.074Z [INFO]: info - Generating static pages (3/15) 2022-08-12T02:54:50.088Z [INFO]: info - Generating static pages (7/15) 2022-08-12T02:54:50.100Z [INFO]: info - Generating static pages (11/15) 2022-08-12T02:54:50.113Z [INFO]: info - Generating static pages (15/15) 2022-08-12T02:54:50.176Z [INFO]: info - Finalizing page optimization... 2022-08-12T02:54:50.181Z [INFO]: 2022-08-12T02:54:50.196Z [INFO]: Page Size First Load JS ┌ ○ / 330 B 144 kB ├ /_app 0 B 144 kB ├ ○ /404 339 B 144 kB ├ λ /api 0 B 144 kB ├ ○ /auth/changepassword/[userId] 1.29 kB 145 kB ├ ○ /auth/reset 1.37 kB 145 kB ├ ○ /auth/signin 2.04 kB 146 kB ├ ○ /auth/signup 2.52 kB 146 kB ├ ○ /auth/verification/[email] 1.57 kB 145 kB ├ ○ /teacher 119 kB 262 kB ├ ○ /teacher/bookshelf 11.6 kB 155 kB ├ ○ /teacher/bookshelf/personal/[id] 2.84 kB 219 kB ├ ○ /teacher/bookshelf/personal/new 3.66 kB 147 kB ├ ○ /teacher/bookshelf/school/[id] 2.83 kB 219 kB ├ ○ /teacher/bookshelf/school/new 2.91 kB 200 kB └ ○ /teacher/settings 2.48 kB 146 kB

log (1).txt .

Really don't know how to go about this issue. Anything would be really helpful.

ghost commented 2 years ago

Hi @Readate can you provide your AppId so we can take a closer look?

diegoweef commented 2 years ago

Same here arn:aws:amplify:us-east-1:734759008183:apps/d2uinotxdpvhsi

calavera commented 1 year ago

We've updated our Next.js support for Next.js 12 and above. The new compute stack should fix this problem, take a look at the announcement: https://aws.amazon.com/blogs/mobile/amplify-next-js-13/

github-actions[bot] commented 1 year ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.