You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
I have removed any sensitive information from my code snippets and submission.
App Id
d1f07ljk6orudj
AWS Region
us-east-2
Amplify Hosting feature
Frontend builds
Frontend framework
Next.js
Next.js version
12.0.0
Next.js router
Pages Router
Describe the bug
I am trying to deploy my application through AWS Amplify console. It is a Next JS app written in typescript and uses tailwindcss. I have played with the build settings and it now says the build and deployment are succeeding but I still see build failing in logs and unusual warning messages.
Here are my build settings:
version: 1
frontend:
phases:
preBuild:
commands:
- echo "Starting pre-build phase..."
- export NODE_OPTIONS="--max-old-space-size=4096"
- cd soothsayer-marketplace
- echo "Installing NPM packages..."
- npm install -g typescript
- npm install --verbose || echo "NPM install failed."
- echo "Installing eslint-config-next..."
- npm install --save-dev eslint-config-next || echo "eslint-config-next installation failed."
- echo "Checking TypeScript version..."
- npm run type-check || echo "TypeScript version check failed."
build:
commands:
- echo "Starting build phase..."
- echo "Running ESLint..."
- npx eslint . --ext .js,.jsx,.ts,.tsx || echo "ESLint errors."
- echo "Running build command..."
- npm run build --verbose || echo "Build command failed."
artifacts:
baseDirectory: soothsayer-marketplace/.next
files:
- '/*'
cache:
paths:
- soothsayer-marketplace/node_modules//*
I am able to run "npm run build", "npm run dev", "npx eslint . --ext .js,.jsx,.ts,.tsx", and "npx tsc --noEmit" successfully locally but there seem to be issues in the build logs on amplify. There is no good logs that actually show the build failure. The lint and typescript missing warnings are weird because I explciitly install them in the build settings and they are in my package.json. I have attached my tsconfig and package json in this message.
Before opening, please confirm:
App Id
d1f07ljk6orudj
AWS Region
us-east-2
Amplify Hosting feature
Frontend builds
Frontend framework
Next.js
Next.js version
12.0.0
Next.js router
Pages Router
Describe the bug
I am trying to deploy my application through AWS Amplify console. It is a Next JS app written in typescript and uses tailwindcss. I have played with the build settings and it now says the build and deployment are succeeding but I still see build failing in logs and unusual warning messages.
Here are my build settings:
version: 1
frontend:
phases:
preBuild:
commands:
- echo "Starting pre-build phase..."
- export NODE_OPTIONS="--max-old-space-size=4096"
- cd soothsayer-marketplace
- echo "Installing NPM packages..."
- npm install -g typescript
- npm install --verbose || echo "NPM install failed."
- echo "Installing eslint-config-next..."
- npm install --save-dev eslint-config-next || echo "eslint-config-next installation failed."
- echo "Checking TypeScript version..."
- npm run type-check || echo "TypeScript version check failed."
build:
commands:
- echo "Starting build phase..."
- echo "Running ESLint..."
- npx eslint . --ext .js,.jsx,.ts,.tsx || echo "ESLint errors."
- echo "Running build command..."
- npm run build --verbose || echo "Build command failed."
artifacts:
baseDirectory: soothsayer-marketplace/.next
files:
- '/*'
cache:
paths:
- soothsayer-marketplace/node_modules//*
log (26).txt
package.json
tsconfig.json
Expected behavior
I am expecting the web app to build successfully and produce the proper build artifacts.
Reproduction steps
Build Settings
Log output
Additional information
No response
The text was updated successfully, but these errors were encountered: