-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Required dependency file not found #3615
Comments
Now I made a tweak to include
It seems to amplify is using a different relative path - I think it should use |
cc @ferdingler |
@arturkasperek I'm sorry you ran into an issue. For background The standalone mode was a convenient way to generate a trimmed down version of the About your issue: |
@ferdingler I will figure out something - next time you should send some info prior to change. In my company, we have our own internal CI/CD and to amplify we provide an already build I think you should prepare some documentation what folders/files should be provided once build finish on the amplify |
2023-08-03T11:45:08.761Z [INFO]: # Completed phase: build Facing the same issue, we are not able to deploy new nextjs apps to amplify - and cannot do any new releases. |
+1 ^ hitting similar issue. I have left my notes on #3631 |
|
@arturkasperek Thanks for sharing your use case and feedback here. I am going to relay this to the team internally. @tsvint @sudhishkr We have deployed a fix for the missing |
|
This issue has been automatically locked. |
Before opening, please confirm:
App Id
d1jlh2fb5j9l38
AWS Region
us-east-1
Amplify Hosting feature
SSR
Frontend framework
Next.js
Next.js version
13.3.1
Next.js router
App Router
Describe the bug
2023-07-25T08:16:18.184Z [INFO]: # Starting phase: preBuild
# Executing command: echo "Skip pre build - already handled"
Skip pre build - already handled
# Completed phase: preBuild
# Starting phase: build
# Executing command: echo "Skip build - already handled"
Skip build - already handled
# Completed phase: build
2023-07-25T08:16:18.186Z [INFO]: ## Build completed successfully
2023-07-25T08:16:18.188Z [INFO]: Setting NEXT_PRIVATE_STANDALONE=true to produce .next/standalone directory
2023-07-25T08:16:18.190Z [INFO]: # No custom headers found.
2023-07-25T08:16:19.563Z [ERROR]: !!! CustomerError: Required dependency file not found: /codebuild/output/src1141702021/src/amplify-deployment/node_modules/webpack/lib/ModuleFilenameHelpers.js
2023-07-25T08:16:19.563Z [INFO]: # Starting environment caching...
2023-07-25T08:16:19.564Z [INFO]: # Environment caching completed
Terminating logging...
Expected behavior
Amplify shouldn't expect for existence of webpack related stuff once build finished
Reproduction steps
.next
folder with already build artifacts +amplify.yml
+package.json
Build Settings
Log output
Additional information
1 day ago everything worked fine and amplify didn't complain about missing things inside
node_modules
. I don't sure what happened under the hoodThe text was updated successfully, but these errors were encountered: