AWS Deployment Failed: TypeError: Cannot read property 'get'

Viewed 17

I am trying to deploy my application in AWS, but it seems like there is something wrong. I tried to google some of the warnings, but nothing relevant pops up.

Can someone tell me what is going on?

2022-09-18T20:00:09.575Z [WARNING]: npm src934027434/src/portfolio
                                 > react-scripts build 2022-09-18T20:00:33.008Z [INFO]: Creating an optimized production
build... 2022-09-18T20:00:41.605Z [INFO]: Failed to compile.
2022-09-18T20:00:41.609Z [INFO]: TypeError: Cannot read property 'get'
of undefined 2022-09-18T20:00:41.625Z [WARNING]: npm
2022-09-18T20:00:41.626Z [WARNING]: ERR! code ELIFECYCLE
                                    npm ERR! errno 1 2022-09-18T20:00:41.628Z [WARNING]: npm 2022-09-18T20:00:41.628Z
[WARNING]: ERR! portfolio_b@0.1.0 build: `react-scripts build`
                                    npm ERR! Exit status 1
                                    npm ERR!
                                    npm ERR! Failed at the portfolio_b@0.1.0 build script.
                                    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2022-09-18T20:00:41.632Z [WARNING]:  2022-09-18T20:00:41.633Z
[WARNING]: npm ERR! A complete log of this run can be found in:
                                    npm ERR!     /root/.npm/_logs/2022-09-18T20_00_41_628Z-debug.log
2022-09-18T20:00:41.633Z [HELP]: Outputting the npm debug log
                                 [object Promise] 2022-09-18T20:00:41.636Z [ERROR]: !!! Build failed
2022-09-18T20:00:41.636Z [ERROR]: !!! Non-Zero Exit Code detected
2022-09-18T20:00:41.636Z [INFO]: # Starting environment caching...
2022-09-18T20:00:41.636Z [INFO]: # Uploading environment cache
artifact... 2022-09-18T20:00:41.738Z [INFO]: # Environment caching
completed Terminating logging...
0 Answers
Related