a year ago
Error on Build process:
10 [stage-0 6/10] RUN --mount=type=cache,id=s/e13bf83d-2fe2-4e61-b64c-50e6827e7506-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile
10 1.045 ERRPNPMOUTDATED_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with package.json
10 1.045
10 1.045 Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"
10 1.045
10 1.045 Failure reason:
10 1.045 specifiers in the lockfile ({"solid-js":"^1.8.11","solid-devtools":"^0.29.2","vite":"^5.0.11","vite-plugin-solid":"^2.8.2"}) don't match specs in package.json ({"autoprefixer":"^10.4.19","postcss":"^8.4.38","solid-devtools":"^0.29.2","tailwindcss":"^3.4.3","vite":"^5.0.11","vite-plugin-solid":"^2.8.2","solid-js":"^1.8.11"})
#10 ERROR: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complete successfully: exit code: 1
[stage-0 6/10] RUN --mount=type=cache,id=s/e13bf83d-2fe2-4e61-b64c-50e6827e7506-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile:
1.045 ERRPNPMOUTDATED_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with package.json
1.045
1.045 Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"
1.045
1.045 Failure reason:1.045 specifiers in the lockfile ({"solid-js":"^1.8.11","solid-devtools":"^0.29.2","vite":"^5.0.11","vite-plugin-solid":"^2.8.2"}) don't match specs in package.json ({"autoprefixer":"^10.4.19","postcss":"^8.4.38","solid-devtools":"^0.29.2","tailwindcss":"^3.4.3","vite":"^5.0.11","vite-plugin-solid":"^2.8.2","solid-js":"^1.8.11"})
Dockerfile:20
18 | ENV NIXPACKSPATH /app/nodemodules/.bin:$NIXPACKS_PATH
19 | COPY . /app/.
20 | >>> RUN --mount=type=cache,id=s/e13bf83d-2fe2-4e61-b64c-50e6827e7506-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile
21 |
22 | # build phase
ERROR: failed to solve: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complete successfully: exit code: 1
Error: Docker build failed
ⓘ Deployment information is only viewable by Project members and Railway admins.
3 Replies
a year ago
I solved the problem, but I will write the solution here that may be useful for other developers. Basically what I did was delete pnpm-lock.yaml and package-lock.json and commit again, problem solved.
I believe the cause of the problem is related to the fact that Solid automatically created the "pnpm-lock.yaml" file, and locally I am only using npm to manage packages, this must have caused the lack of synchronization. Thanks!