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 set up deploying next.js web through Amplify but it failed at second step (provisioning > build)
Expected behavior
Build Success
Reproduction steps
Build Settings
version: 1applications:
- frontend:
phases:
preBuild:
commands:
- yarn installbuild:
commands:
- yarn web build # web is alias of nextjs-web packageartifacts:
baseDirectory: packages/nextjs-web/.nextfiles:
- '**/*'cache:
paths:
- .yarn/**/*buildPath: /appRoot: packages/nextjs-webcustomHeaders:
- pattern: /headers:
- key: Cache-Controlvalue: s-maxage=10
Log output
# Put your logs below this line
2023-11-10T08:05:40.632Z [INFO]: Found customHttp.yml, applying custom headers...
2023-11-10T08:05:40.710Z [ERROR]: !!! CustomerError: Cannot find package: next. Please ensure the dependency is installed correctly
Additional information
I think It looks like it's all over by build. But I don't know what makes it fail after the build.
The text was updated successfully, but these errors were encountered:
Before opening, please confirm:
App Id
d1c90c3mxyn376
AWS Region
ap-northeast-2
Amplify Hosting feature
Monorepo, SSR
Frontend framework
Next.js
Next.js version
13
Next.js router
Pages Router
Describe the bug
First, My project architecture like below
I set up deploying next.js web through Amplify but it failed at second step (provisioning > build)
Expected behavior
Build Success
Reproduction steps
Build Settings
Log output
Additional information
I think It looks like it's all over by build. But I don't know what makes it fail after the build.
The text was updated successfully, but these errors were encountered: