I am getting following error while trying to create build of react application
Creating an optimized production build...
Failed to compile.
Failed to minify the code from this file:
./node_modules/asn1.js/lib/asn1/base/node.js:282
Read more here:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! atlas#2.0.0 staging: `env-cmd -f .env.staging react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the atlas#2.0.0 staging 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! /home/user/.npm/_logs/2021-09-24T06_00_59_644Z-debug.log
Related
I'm having issues to run the a pipeline in AWS successfully. The flow fails in the CodeBuild phase of AWS.
I thought it was due to the .npm installation but I double checked and that is ok.
Please find below the tail log.
Thank you!
Build failed because of webpack errors
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! tokyo-white-nextjs-admin-dashboard#3.0.0 build: `next build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the tokyo-white-nextjs-admin-dashboard#3.0.0 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! /root/.npm/_logs/2022-04-26T08_22_32_253Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! tokyo-white-nextjs-admin-dashboard#3.0.0 build-prod: `npm run clean && npm run build && npm run export`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the tokyo-white-nextjs-admin-dashboard#3.0.0 build-prod 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! /root/.npm/_logs/2022-04-26T08_22_32_267Z-debug.log
[Container] 2022/04/26 08:22:32 Command did not exit successfully npm run build-prod exit status 1
[Container] 2022/04/26 08:22:32 Phase complete: BUILD State: FAILED
[Container] 2022/04/26 08:22:32 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: npm run build-prod. Reason: exit status 1
[Container] 2022/04/26 08:22:32 Entering phase POST_BUILD
Could not find a required file.
Name: index.js
Searched in: C:\Users\LENOVO\Desktop\COLLEGE\WEB_DEVLOPMENT\react-frontend-01-starting-setup\src
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! frontend#0.1.0 start: react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the frontend#0.1.0 start 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:
I am receiving the following error when trying to build my react app. The error isnt exactly clear. When I run npm start I have no issues with the app. Npm test shows no errors or warnings.
Creating an optimized production build...
Failed to compile.
Expected an attribute.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-firebase-authentication#0.1.1 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-firebase-authentication#0.1.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above
Node and NPM are up to date. I am able to build other apps I am working on. Not sure where to begin with this error.
I'm having this problem when I do npm run build for production:
Creating an optimized production build...
Failed to compile.
Failed to minify the code from this file:
./node_modules/axios-token-interceptor/index.js:19
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! myanmar-club-web-app#0.1.0 build: `react-app-rewired build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the myanmar-club-web-app#0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
It was fine when I run locally.
Anyone know how to solve it?
Someone who can help me how to solve this error when configuring the webpack.
I am using React.js
The error is as follows:
ERROR in Entry module not found: Error: Can't resolve 'C:\react\index.js' in 'C:\react'
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! platzivideo#1.0.0 build:prod: webpack -p --env.NODE_ENV=production
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the platzivideo#1.0.0 build:prod 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! C:\AppData\Roaming\npm-cache_logs\2018-07-22T21_33_42_548Z-debug.log