R
Railway2mo ago
Boxer

React vinxi app failing build

Hi there, for some reason my build is failing for my vinxi app here are the build logs:
#9 DONE 0.0s



#10 [stage-0 6/10] RUN --mount=type=cache,id=s/047d91cb-fd36-4784-9efc-af0c5dbe5158-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile



#10 0.876  WARN  Ignoring not compatible lockfile at /app/pnpm-lock.yaml



#10 0.879  ERR_PNPM_NO_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent

#10 0.879

#10 0.879 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 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/047d91cb-fd36-4784-9efc-af0c5dbe5158-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile:

0.876  WARN  Ignoring not compatible lockfile at /app/pnpm-lock.yaml

0.879  ERR_PNPM_NO_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent

0.879

0.879 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"

-----





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:20

-------------------

18 | ENV NIXPACKS_PATH /app/node_modules/.bin:$NIXPACKS_PATH

19 | COPY . /app/.

20 | >>> RUN --mount=type=cache,id=s/047d91cb-fd36-4784-9efc-af0c5dbe5158-/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
#9 DONE 0.0s



#10 [stage-0 6/10] RUN --mount=type=cache,id=s/047d91cb-fd36-4784-9efc-af0c5dbe5158-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile



#10 0.876  WARN  Ignoring not compatible lockfile at /app/pnpm-lock.yaml



#10 0.879  ERR_PNPM_NO_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent

#10 0.879

#10 0.879 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 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/047d91cb-fd36-4784-9efc-af0c5dbe5158-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile:

0.876  WARN  Ignoring not compatible lockfile at /app/pnpm-lock.yaml

0.879  ERR_PNPM_NO_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent

0.879

0.879 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"

-----





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:20

-------------------

18 | ENV NIXPACKS_PATH /app/node_modules/.bin:$NIXPACKS_PATH

19 | COPY . /app/.

20 | >>> RUN --mount=type=cache,id=s/047d91cb-fd36-4784-9efc-af0c5dbe5158-/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
90 Replies
Percy
Percy2mo ago
Project ID: 047d91cb-fd36-4784-9efc-af0c5dbe5158,047d91cb-fd36-4784-9efc-af0c5dbe5158,047d91cb-fd36-4784-9efc-af0c5dbe5158
Boxer
Boxer2mo ago
Project ID: f78d75b5-8972-4d61-8517-22bbccefb41e
Brody
Brody2mo ago
so what is vinxi?
Boxer
Boxer2mo ago
it's a js builder https://vinxi.vercel.app/
Vinxi
Vinxi Documentation
Boxer
Boxer2mo ago
so it's used by tanstack
Brody
Brody2mo ago
interesting haven't seen anyone ask for help to deploy it
Boxer
Boxer2mo ago
yeah is that the problem?
Brody
Brody2mo ago
but I see two issues, you aren't specifying the correct pnpm version, and you are attempting to run a development server after committing on that other thread I'd thought you'd be a little more conscious on running things that use a lot of unnecessary memory 😆
Boxer
Boxer2mo ago
🤣 I didn't want to write a backend server for my react app so was trying this app with server functions
Brody
Brody2mo ago
SSR?
Boxer
Boxer2mo ago
Server Functions | TanStack Router React Docs
As TanStack Start is a full-stack framework, we need a way to call a function on the client which then executes some code on the server. This is where Server Functions come in.
Brody
Brody2mo ago
can you link to an example project that's most like what your own project is?
Boxer
Boxer2mo ago
StackBlitz
Router Start Basic Counter Example - StackBlitz
Run official live example code for Router Start Basic Counter, created by Tanstack on StackBlitz
Want results from more Discord servers?
Add your server