I'm trying to deploy a NextJS app using AWS Amplify. When I use 'npm run dev' locally, everything works as expected. When I use 'npm run build', everything also compiles fine locally. When I push changes to the branch that AWS Amplify is monitoring, it fails to build, stating:
[WARNING]: Failed to compile.
./src/app/page.tsx
Module not found: Can't resolve '@/styles/Home.css'
Here's my tsconfig.json:
Here's the file the error is occurring:
Here's my file tree:
And here's the AWS build logs:
Any help is greatly appreciated!



