Skip to content
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

Error from backend docker image (lodash) #644

Open
adrianomirandaa opened this issue Jul 14, 2024 · 4 comments
Open

Error from backend docker image (lodash) #644

adrianomirandaa opened this issue Jul 14, 2024 · 4 comments

Comments

@adrianomirandaa
Copy link

When attempting to run docker-compose up, I encounter the following error during the build process:

 => [backend  9/11] RUN npm install                                                                                                                          113.3s
 => [backend 10/11] COPY . .                                                                                                                                   0.1s 
 => ERROR [backend 11/11] RUN npm run build                                                                                                                    5.1s
------
 > [backend 11/11] RUN npm run build:
0.342 
0.342 > [email protected] build
0.342 > tsc
0.342 
4.990 node_modules/@types/lodash/common/object.d.ts(1026,46): error TS1005: '?' expected.
4.991 node_modules/@types/lodash/common/object.d.ts(1031,46): error TS1005: '?' expected.
4.991 node_modules/@types/lodash/common/object.d.ts(1041,46): error TS1005: '?' expected.
------
failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 2
@baldomerocho
Copy link
Contributor

add "@types/lodash": "4.14" to package.js [devDependencies]

@baldomerocho
Copy link
Contributor

PR: #645

@adrianomirandaa
Copy link
Author

adrianomirandaa commented Oct 17, 2024

Hi, the last version is not working anymore:

 > [backend 11/11] RUN npm run build:
0.528 
0.528 > [email protected] build /usr/src/app
0.528 > tsc
0.528 
13.57 node_modules/@types/lodash/common/object.d.ts(1026,46): error TS1005: '?' expected.
13.57 node_modules/@types/lodash/common/object.d.ts(1031,46): error TS1005: '?' expected.
13.58 node_modules/@types/lodash/common/object.d.ts(1041,46): error TS1005: '?' expected.
13.62 npm ERR! code ELIFECYCLE
13.62 npm ERR! errno 2
13.62 npm ERR! [email protected] build: `tsc`
13.62 npm ERR! Exit status 2
13.62 npm ERR! 
13.63 npm ERR! Failed at the [email protected] build script.
13.63 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
13.63 
13.64 npm ERR! A complete log of this run can be found in:
13.64 npm ERR!     /root/.npm/_logs/2024-10-17T16_47_43_221Z-debug.log
------
failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 2

@adrianomirandaa
Copy link
Author

The issue was resolved by switching to node:16 instead of node:14.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants