Thanks for this, got me further than the official Amplify Next.js tutorial. However, I see you delete _app.js and never add it back. This means globals.css is never imported. Is there a reason to take it out? Few small notes: CSS imports need to be refactored for the src/ directory strict: true throws lots of errors in index.tsx, seems better to have on a per directory basis. Otherwise your code is full of extra null checks and @ ts-ignore. You don't specify the version of @ aws-amplify/ui-react so v2 is installed, which has breaking changes. But thanks again. Big challenge with learning Amplify today is that all the docs are out of date with both the CLI and UI components by at least one major version, so nothing matches.