Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Trying to make npm run build on react

Agustin Ramos Peruzzo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 24, 2023
npm run build
> unified_app@3.0.4 build /opt/atlassian/pipelines/agent/build
> react-scripts build
Creating an optimized production build...
One of your dependencies, babel-preset-react-app, is importing the
"@babel/plugin-proposal-private-property-in-object" package without
declaring it in its dependencies. This is currently working because
"@babel/plugin-proposal-private-property-in-object" is already in your
node_modules folder for unrelated reasons, but it may break at any time.
babel-preset-react-app is part of the create-react-app project, which
is not maintianed anymore. It is thus unlikely that this bug will
ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to
your devDependencies to work around this error. This will make this message
go away.
Treating warnings as errors because process.env.CI = true.
Most CI servers set it automatically.
Failed to compile.
/static/js/main.6be8baac.js is 8.89 MB, and won't be precached. Configure maximumFileSizeToCacheInBytes to change this limit.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! unified_app@3.0.4 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the unified_app@3.0.4 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/2023-06-24T11_47_07_014Z-debug.log

1 answer

1 accepted

1 vote
Answer accepted
Agustin Ramos Peruzzo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 24, 2023

I just resolved the issue, just putting CI=false in the beginning of the command

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events