Docker build failing for NodeJS project

My build is failing because of a dependency tree issue. I added a custom build command to install node modules with the "--legacy-peer-deps" flag but it's still not working. Any other ideas? Project ID: 7480106c-0eb8-4d3d-9ee2-aa554c72d82b
#11 2.707 npm ERR! code ERESOLVE
#11 2.709 npm ERR! ERESOLVE unable to resolve dependency tree
#11 2.709 npm ERR!
#11 2.709 npm ERR! While resolving: [email protected]
#11 2.709 npm ERR! Found: [email protected]
#11 2.710 npm ERR! node_modules/graphql
#11 2.710 npm ERR! graphql@"15.4.0" from the root project
#11 2.710 npm ERR!
#11 2.710 npm ERR! Could not resolve dependency:
#11 2.710 npm ERR! peer graphql@"^0.12.0 || ^0.13.0 || ^14.0.0" from [email protected]

#11 2.710 npm ERR! node_modules/graphql-middleware
#11 2.710 npm ERR! graphql-middleware@"4.0.2" from the root project
#11 2.710 npm ERR!
#11 2.710 npm ERR! Fix the upstream dependency conflict, or retry
#11 2.710 npm ERR! this command with --force, or --legacy-peer-deps
#11 2.710 npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
#11 2.710 npm ERR!
#11 2.710 npm ERR! See /root/.npm/eresolve-report.txt for a full report.
#11 2.712
#11 2.712 npm ERR! A complete log of this run can be found in:
#11 2.712 npm ERR! /root/.npm/_logs/2022-12-09T21_12_14_679Z-debug-0.log

#11 ERROR: executor failed running [/bin/bash -ol pipefail -c npm i]: exit code: 1
#11 2.707 npm ERR! code ERESOLVE
#11 2.709 npm ERR! ERESOLVE unable to resolve dependency tree
#11 2.709 npm ERR!
#11 2.709 npm ERR! While resolving: [email protected]
#11 2.709 npm ERR! Found: [email protected]
#11 2.710 npm ERR! node_modules/graphql
#11 2.710 npm ERR! graphql@"15.4.0" from the root project
#11 2.710 npm ERR!
#11 2.710 npm ERR! Could not resolve dependency:
#11 2.710 npm ERR! peer graphql@"^0.12.0 || ^0.13.0 || ^14.0.0" from [email protected]

#11 2.710 npm ERR! node_modules/graphql-middleware
#11 2.710 npm ERR! graphql-middleware@"4.0.2" from the root project
#11 2.710 npm ERR!
#11 2.710 npm ERR! Fix the upstream dependency conflict, or retry
#11 2.710 npm ERR! this command with --force, or --legacy-peer-deps
#11 2.710 npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
#11 2.710 npm ERR!
#11 2.710 npm ERR! See /root/.npm/eresolve-report.txt for a full report.
#11 2.712
#11 2.712 npm ERR! A complete log of this run can be found in:
#11 2.712 npm ERR! /root/.npm/_logs/2022-12-09T21_12_14_679Z-debug-0.log

#11 ERROR: executor failed running [/bin/bash -ol pipefail -c npm i]: exit code: 1
3 Replies
Percy
Percy2y ago
Project ID: 7480106c-0eb8-4d3d-9ee2-aa554c72d82b
Percy
Percy2y ago
It appears that there is an upstream dependency conflict causing the Docker build to fail for the NodeJS project.
⚠️ experimental feature
patrick
patrickOP2y ago
hi any tips
Want results from more Discord servers?
Add your server