mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #4243] ERROR RUN pnpm run generate #1531
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1531
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @outradriss on GitHub (Aug 6, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4243
Hello,
I tried to run the image locally with branch main , but I encountered this error:
=> ERROR [fe_builder 2/2] RUN pnpm run generate 45.8s
=> CANCELED [sh_admin_builder 2/3] RUN pnpm run build --outDir dist-multiport-setup 46.2s
=> [backend 2/6] WORKDIR /usr/src/app/packages/hoppscotch-backend 0.1s
=> [backend 3/6] RUN pnpm exec prisma generate 10.4s
=> CANCELED [backend 4/6] RUN pnpm run build 24.8s
8 warnings found (use --debug to expand):
prod.Dockerfile:36
34 | FROM base_builder as fe_builder
35 | WORKDIR /usr/src/app/packages/hoppscotch-selfhost-web
36 | >>> RUN pnpm run generate
37 |
38 | FROM caddy:2-alpine as app
ERROR: failed to solve: process "/bin/sh -c pnpm run generate" did not complete successfully: exit code: 1
Do you have any ideas, please?
@4innocent commented on GitHub (Aug 7, 2024):
just change this in vite.config.ts.
from
const ENV = loadEnv("development", path.resolve(__dirname, "../../"), ["VITE_"])to
const ENV = loadEnv("example", path.resolve(__dirname, "../../"), ["VITE_"])@outradriss commented on GitHub (Aug 8, 2024):
Thanks @4innocent for the response, it helped me, but I have another issue with JWTStrategy when I try to run a container:
ERROR [ExceptionHandler] JwtStrategy requires a secret or key
2024-08-08 17:53:07 Backend Server | TypeError: JwtStrategy requires a secret or key
2024-08-08 17:53:07 Backend Server | at new JwtStrategy (/usr/src/app/node_modules/.pnpm/passport-jwt@4.0.1/node_modules/passport-jwt/lib/strategy.js:45:15)
2024-08-08 17:53:07 Backend Server | at new MixinStrategy (/usr/src/app/node_modules/.pnpm/@nestjs+passport@10.0.2_@nestjs+common@10.2.7_class-transformer@0.5.1_class-validator@0.14.1__owspyaltb3hygw66etzcv5nnwq/node_modules/@nestjs/passport/dist/passport/passport.strategy.js:32:13)
2024-08-08 17:53:07 Backend Server | at new JwtStrategy (/usr/src/app/packages/hoppscotch-backend/dist/auth/strategies/jwt.strategy.js:22:9)
2024-08-08 17:53:07 Backend Server | at Injector.instantiateClass (/usr/src/app/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_class-transformer@0.5.1_class-validator@0.14.1_refl_i5vxtddbnp5qhu6jmywguprp3e/node_modules/@nestjs/core/injector/injector.js:365:19)
2024-08-08 17:53:07 Backend Server | at callback (/usr/src/app/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_class-transformer@0.5.1_class-validator@0.14.1_refl_i5vxtddbnp5qhu6jmywguprp3e/node_modules/@nestjs/core/injector/injector.js:65:45)
2024-08-08 17:53:07 Backend Server | at async Injector.resolveConstructorParams (/usr/src/app/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_class-transformer@0.5.1_class-validator@0.14.1_refl_i5vxtddbnp5qhu6jmywguprp3e/node_modules/@nestjs/core/injector/injector.js:144:24)
2024-08-08 17:53:07 Backend Server | at async Injector.loadInstance (/usr/src/app/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_class-transformer@0.5.1_class-validator@0.14.1_refl_i5vxtddbnp5qhu6jmywguprp3e/node_modules/@nestjs/core/injector/injector.js:70:13)
2024-08-08 17:53:07 Backend Server | at async Injector.loadProvider (/usr/src/app/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_class-transformer@0.5.1_class-validator@0.14.1_refl_i5vxtddbnp5qhu6jmywguprp3e/node_modules/@nestjs/core/injector/injector.js:97:9)
2024-08-08 17:53:07 Backend Server | at async /usr/src/app/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_class-transformer@0.5.1_class-validator@0.14.1_refl_i5vxtddbnp5qhu6jmywguprp3e/node_modules/@nestjs/core/injector/instance-loader.js:56:13
2024-08-08 17:53:07 Backend Server | at async Promise.all (index 4)
2024-08-08 17:53:07 Backend Server | ELIFECYCLE Command failed with exit code 1.