Error on build
ricardorackiTRIAL
a year ago
My logs:
#12 0.640 npm
WARN config production Use `--omit=dev` instead.
#12 0.819
#12 0.819 > reviews_backend@1.0.0 build
#12 0.819 > tsc -p tsconfig.json
#12 0.819
#12 2.995 src/lib/review-writer.ts(1,23): error TS2307: Cannot find module 'puppeteer' or its corresponding type declarations.
#12 2.995 src/lib/review-writer.ts(25,35): error TS7006: Parameter 'e' implicitly has an 'any' type.
#12 3.017 npm notice
#12 3.017 npm notice New minor version of npm available! 10.5.0 -> 10.8.2
#12 3.018 npm notice Changelog: ;
#12 3.018 npm notice Run `npm install -g npm@10.8.2` to update!
#12 3.018 npm notice
#12 ERROR: process "/bin/bash -ol pipefail -c CI=false npm run build" did not complete successfully: exit code: 2
-----
> [stage-0 8/10] RUN --mount=type=cache,id=s/7d39e5e3-ca03-46e7-9130-e1d3040361d8-node_modules/cache,target=/app/node_modules/.cache CI=false npm run build:
0.819 > reviews_backend@1.0.0 build
0.819 > tsc -p tsconfig.json
0.819
2.995 src/lib/review-writer.ts(1,23): error TS2307: Cannot find module 'puppeteer' or its corresponding type declarations.
2.995 src/lib/review-writer.ts(25,35): error TS7006: Parameter 'e' implicitly has an 'any' type.
3.017 npm notice
3.017 npm notice New minor version of npm available! 10.5.0 -> 10.8.2
3.018 npm notice Changelog: ;
3.018 npm notice Run `npm install -g npm@10.8.2` to update!
3.018 npm notice
-----
2 warnings found (use --debug to expand):
- UndefinedVar: Usage of undefined variable '$NIXPACKS_PATH' (line 18)
LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 18)
Dockerfile:24
-------------------
22 | # build phase
23 | COPY . /app/.
24 | >>> RUN --mount=type=cache,id=s/7d39e5e3-ca03-46e7-9130-e1d3040361d8-node_modules/cache,target=/app/node_modules/.cache CI=false npm run build
25 |
26 |
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c CI=false npm run build" did not complete successfully: exit code: 2
Error: Docker build failed
> ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies