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
Local test - when submitting credentials Proxy error: Could not proxy request /api/items from localhost:3000 to http://localhost:5000/. [1] See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).
When deploying to heroku - error log :
-----> Building on the Heroku-20 stack
-----> Node.js app detected
> [email protected] postinstall /tmp/build_e7159bee/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
> [email protected] postinstall /tmp/build_e7159bee/node_modules/nodemon
> node bin/postinstall || exit 0
Love nodemon? You can now support the project via the open collective:
> https://opencollective.com/nodemon/donate
added 529 packages from 324 contributors and audited 531 packages in 19.175s
7 packages are looking for funding
run `npm fund` for details
found 1 low severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
-----> Build
Running heroku-postbuild
> [email protected] heroku-postbuild /tmp/build_e7159bee
> NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client
> [email protected] postinstall /tmp/build_e7159bee/client/node_modules/babel-runtime/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
> [email protected] postinstall /tmp/build_e7159bee/client/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
> [email protected] postinstall /tmp/build_e7159bee/client/node_modules/core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"
added 1690 packages from 1077 contributors and audited 1703 packages in 62.777s
78 packages are looking for funding
run `npm fund` for details
found 5 vulnerabilities (1 low, 4 high)
run `npm audit fix` to fix them, or `npm audit` for details
> [email protected] build /tmp/build_e7159bee/client
> react-scripts build
Creating an optimized production build...
Failed to compile.
/tmp/build_e7159bee/client/src/App.tsx
TypeScript error in /tmp/build_e7159bee/client/src/App.tsx(1,34):
Could not find a declaration file for module 'react'. '/tmp/build_e7159bee/client/node_modules/react/index.js' implicitly has an 'any' type.
If the 'react' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react` TS7016
> 1 | import React, { useEffect } from 'react';
| ^
2 | import AppNavbar from './components/AppNavbar';
3 | import ShoppingList from './components/ShoppingList';
4 | import ItemModal from './components/ItemModal';
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: react-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.o5qtJ/_logs/2021-01-22T22_42_26_188Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] heroku-postbuild: NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] heroku-postbuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.o5qtJ/_logs/2021-01-22T22_42_26_216Z-debug.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
Local test - when submitting credentials
Proxy error: Could not proxy request /api/items from localhost:3000 to http://localhost:5000/. [1] See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).
When deploying to heroku - error log :
-----> Building on the Heroku-20 stack
-----> Node.js app detected
-----> Creating runtime environment
-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)
-----> Installing dependencies
Installing node modules (package.json)
-----> Build
Running heroku-postbuild
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:
react-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.o5qtJ/_logs/2021-01-22T22_42_26_188Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] heroku-postbuild:
NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] heroku-postbuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.o5qtJ/_logs/2021-01-22T22_42_26_216Z-debug.log
-----> Build failed
! Push rejected, failed to compile Node.js app.
! Push failed
The text was updated successfully, but these errors were encountered: