samples-js-vue icon indicating copy to clipboard operation
samples-js-vue copied to clipboard

sample-js-vue Build Fails on Heroku-20 stack (unable to resolve dependency tree)

Open kazemicode opened this issue 2 years ago • 1 comments

Log:


-----> Building on the Heroku-20 stack
-----> Determining which buildpack to use for this app
-----> Node.js app detected
       
-----> Creating runtime environment
       
       NPM_CONFIG_PRODUCTION=false
       NPM_CONFIG_LOGLEVEL=error
       YARN_PRODUCTION=false
       NODE_VERBOSE=false
       NODE_ENV=production
       NODE_MODULES_CACHE=true
       
-----> Installing binaries
       engines.node (package.json):  unspecified
       engines.npm (package.json):   unspecified (use default)
       
       Resolving node version 16.x...
       Downloading and installing node 16.16.0...
       Using default npm version: 8.11.0
       
-----> Installing dependencies
       Installing node modules (package.json)
       npm ERR! code ERESOLVE
       npm ERR! ERESOLVE unable to resolve dependency tree
       npm ERR! 
       npm ERR! While resolving: @okta/[email protected]
       npm ERR! Found: [email protected]
       npm ERR! node_modules/eslint
       npm ERR!   dev eslint@"^7.29.0" from the root project
       npm ERR! 
       npm ERR! Could not resolve dependency:
       npm ERR! peer eslint@"^5.0.0 || ^6.0.0" from [email protected]
       npm ERR! node_modules/eslint-plugin-vue
       npm ERR!   dev eslint-plugin-vue@"^6.2.2" from the root project
       npm ERR! 
       npm ERR! Fix the upstream dependency conflict, or retry
       npm ERR! this command with --force, or --legacy-peer-deps
       npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
       npm ERR! 
       npm ERR! See /tmp/npmcache.91vt8/eresolve-report.txt for a full report.
       
       npm ERR! A complete log of this run can be found in:
       npm ERR!     /tmp/npmcache.91vt8/_logs/2022-08-06T21_55_52_496Z-debug-0.log
-----> Build failed
       
       We're sorry this build is failing! You can troubleshoot common issues here:
       https://devcenter.heroku.com/articles/troubleshooting-node-deploys
       
       Some possible problems:
       
       - Node version not specified in package.json
         https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
       
       Love,
       Heroku
       
 !     Push rejected, failed to compile Node.js app.
 !     Push failed

kazemicode avatar Aug 06 '22 21:08 kazemicode

Thanks for report @kazemicode. Internal ref: OKTA-521979