twilio / twilio-voice-notification-app

Reference app built in ReactJS that demonstrates how to leverage Twilio Programmable Voice and Twilio SDKs to create a voice notification system.
Apache License 2.0
36 stars 25 forks source link

Heroku Buid Fails (same error log for local deploy via docker-compose) #137

Open juniorumda opened 1 year ago

juniorumda commented 1 year ago

Building via Heroku fails (please see the log)

-----> Installing dependencies
       Installing node modules
       npm notice 
       npm notice New minor version of npm available! 9.6.7 -> 9.8.1
       npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.8.1>
       npm notice Run `npm install -g npm@9.8.1` to update!
       npm notice 
       npm ERR! code EUSAGE
       npm ERR! 
       npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
       npm ERR! 
       npm ERR! Invalid: lock file's css-loader@3.4.2 does not satisfy css-loader@5.2.7
       npm ERR! Invalid: lock file's icss-utils@4.1.1 does not satisfy icss-utils@5.1.0
       npm ERR! Invalid: lock file's postcss@7.0.35 does not satisfy postcss@8.4.28
       npm ERR! Missing: loader-utils@2.0.4 from lock file
       npm ERR! Invalid: lock file's postcss-modules-extract-imports@2.0.0 does not satisfy postcss-modules-extract-imports@3.0.0
       npm ERR! Invalid: lock file's postcss-modules-local-by-default@3.0.3 does not satisfy postcss-modules-local-by-default@4.0.3
       npm ERR! Invalid: lock file's postcss-modules-scope@2.2.0 does not satisfy postcss-modules-scope@3.0.0
       npm ERR! Invalid: lock file's postcss-modules-values@3.0.0 does not satisfy postcss-modules-values@4.0.0
       npm ERR! Invalid: lock file's postcss-value-parser@4.1.0 does not satisfy postcss-value-parser@4.2.0
       npm ERR! Missing: schema-utils@3.3.0 from lock file
       npm ERR! Missing: semver@7.5.4 from lock file
       npm ERR! Missing: nanoid@3.3.6 from lock file
       npm ERR! Missing: picocolors@1.0.0 from lock file
       npm ERR! Missing: source-map-js@1.0.2 from lock file
       npm ERR! Invalid: lock file's postcss-selector-parser@6.0.4 does not satisfy postcss-selector-parser@6.0.13
       npm ERR! Missing: json5@2.2.3 from lock file
       npm ERR! Invalid: lock file's @types/json-schema@7.0.4 does not satisfy @types/json-schema@7.0.12
       npm ERR! Invalid: lock file's ajv@6.12.0 does not satisfy ajv@6.12.6
       npm ERR! Invalid: lock file's ajv-keywords@3.4.1 does not satisfy ajv-keywords@3.5.2
       npm ERR! Missing: lru-cache@6.0.0 from lock file
       npm ERR! 
       npm ERR! Clean install a project
       npm ERR! 
       npm ERR! Usage:
       npm ERR! npm ci
       npm ERR! 
       npm ERR! Options:
       npm ERR! [--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
       npm ERR! [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
       npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
       npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
       npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
       npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
       npm ERR! 
       npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
       npm ERR! 
       npm ERR! Run "npm help ci" for more info

       npm ERR! A complete log of this run can be found in: /tmp/npmcache.lhpRe/_logs/2023-08-16T15_50_23_953Z-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

How to Reproduce Steps to reproduce the behavior:

  1. Just click on "Deploy to Heroku" at https://github.com/twilio/twilio-voice-notification-app
  2. Add app name, select region, provide ACCOUNT_SID, AUTH_TOKEN and PASSCODE
  3. Hit Deploy
  4. Observe the above log

Expected behavior Deployment fails.

Screenshots image

Desktop:

Additional context Tried local deployment via docker on wsl Ubuntu 23.04 (all dependencies up to date) - same output during docker build.

Please Help?