mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #5052] [bug]: hoppscotch-selfhost-web fails to build in recent main #1925
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#1925
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 @html1101 on GitHub (May 5, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5052
Is there an existing issue for this?
Current behavior
When building
hoppscotch-selfhost-weblocally from scratch,hoppscotch-selfhost-webfails to build because it relies on built information inhoppscotch-datawhich hasn't been built yet and causes an error.Steps to reproduce
docker-compose --profile just-backendpnpm installpnpm run generate && pnpm startThen in step 5 is where I'm seeing the error. I was able to get it working only after building in
hoppscotch-datafirst bycd-ing in and runningpnpm run build, so it seems like an ordering issue wherehoppscotch-dataneeds to be built beforehoppscotch-selfhost-web, but I'm unsure.Logs and Screenshots
Environment
Production
Hoppscotch Version
Local
Interceptor
Not Applicable - Issue not related to network requests
Browsers Affected
No response
Operating System
Linux
Additional Information
No response
@g3Bg2 commented on GitHub (May 7, 2025):
@html1101, which pnpm version are you using?
Also there is no pnpm start in hoppscotch-selfhost-web
@html1101 commented on GitHub (May 8, 2025):
I was using version
10.2.1, andpnpm startwas run from the main directory, not from thehoppscotch-selfhost-webbut I believe that runs thehttp-serverof the web instantiation, right, since it runs the commandhttp-server packages/hoppscotch-selfhost-web/dist -p 3000?@g3Bg2 commented on GitHub (May 8, 2025):
Yes.
Working perfectly fine on my end.
When you do
pnpm installfrom the main dir, it should generate the build files in hoppscotch-data.Also, check if it is exporting calculateHawkHeader from packages/hoppscotch-data/dist/hoppscotch-data.js on your end.