-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm run build show errors #650
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
step1: npm i
step 2:npm run build
#16 4.406 node_modules/@types/lodash/common/object.d.ts(1026,46): error TS1005: '?' expected.
#16 4.407 node_modules/@types/lodash/common/object.d.ts(1031,46): error TS1005: '?' expected.
#16 4.407 node_modules/@types/lodash/common/object.d.ts(1041,46): error TS1005: '?' expected.
step2 shows error
completely log info
#16 [11/11] RUN npm run build
#16 0.315
#16 0.315 > [email protected] build /usr/src/app
#16 0.315 > tsc
#16 0.315
#16 4.406 node_modules/@types/lodash/common/object.d.ts(1026,46): error TS1005: '?' expected.
#16 4.407 node_modules/@types/lodash/common/object.d.ts(1031,46): error TS1005: '?' expected.
#16 4.407 node_modules/@types/lodash/common/object.d.ts(1041,46): error TS1005: '?' expected.
#16 4.482 npm ERR! code ELIFECYCLE
#16 4.483 npm ERR! errno 2
#16 4.484 npm ERR! [email protected] build:
tsc
#16 4.484 npm ERR! Exit status 2
#16 4.484 npm ERR!
#16 4.484 npm ERR! Failed at the [email protected] build script.
#16 4.484 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
#16 4.523
#16 4.523 npm ERR! A complete log of this run can be found in:
#16 4.524 npm ERR! /root/.npm/_logs/2024-07-31T06_32_03_045Z-debug.log
#16 ERROR: process "/bin/sh -c npm run build" did not complete successfully: exit code: 2
4 warnings found (use docker --debug to expand):
Dockerfile:29
27 |
28 | COPY . .
29 | >>> RUN npm run build
30 |
31 | ENV NODE_ENV=production
ERROR: failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 2
ERROR: Job failed: Process exited with status 1
The text was updated successfully, but these errors were encountered: