[GH-ISSUE #4907] [bug]: Can't build/start 2025.2.2 due to error while pnpm run generate #1851

Closed
opened 2026-03-16 22:04:56 +03:00 by kerem · 7 comments
Owner

Originally created by @LordSimal on GitHub (Mar 18, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4907

Is there an existing issue for this?

  • I have searched existing issues and this bug hasn't been reported yet

Current behavior

I tried to upgrade my self hosted AIO instance from 2025.2.1 to 2025.2.2 and now I get the following error:

root@scarecrow:~/hoppscotch# docker compose --profile default up -d --build --no-deps --force-recreate
Compose now can delegate build to bake for better performances
Just set COMPOSE_BAKE=true
[+] Building 5.4s (29/64)                                                                                                                                                               docker:default
 => [hoppscotch-aio internal] load build definition from prod.Dockerfile                                                                                                                          0.1s
 => => transferring dockerfile: 8.22kB                                                                                                                                                            0.0s
 => [hoppscotch-aio internal] load metadata for docker.io/library/alpine:3.21.2                                                                                                                   1.0s
 => [hoppscotch-aio internal] load metadata for docker.io/library/alpine:3.19.7                                                                                                                   1.0s
 => [hoppscotch-aio internal] load metadata for docker.io/library/rust:1-alpine                                                                                                                   1.0s
 => [hoppscotch-aio internal] load .dockerignore                                                                                                                                                  0.2s
 => => transferring context: 352B                                                                                                                                                                 0.0s
 => [hoppscotch-aio internal] load build context                                                                                                                                                  0.2s
 => => transferring context: 2.54MB                                                                                                                                                               0.1s
 => [hoppscotch-aio caddy_builder  1/13] FROM docker.io/library/alpine:3.21.2@sha256:56fa17d2a7e7f168a043a2712e63aed1f8543aeafdcee47c58dcffe38ed51099                                             0.0s
 => [hoppscotch-aio webapp_server_builder 1/6] FROM docker.io/library/rust:1-alpine@sha256:bea885d2711087e67a9f7a7cd1a164976f4c35389478512af170730014d2452a                                       0.0s
 => [hoppscotch-aio base_builder  1/10] FROM docker.io/library/alpine:3.19.7@sha256:e5d0aea7f7d2954678a9a6269ca2d06e06591881161961ea59e974dff3f12377                                              0.0s
 => CACHED [hoppscotch-aio webapp_server_builder 2/6] WORKDIR /usr/src/app                                                                                                                        0.0s
 => CACHED [hoppscotch-aio webapp_server_builder 3/6] RUN apk add --no-cache musl-dev                                                                                                             0.0s
 => CACHED [hoppscotch-aio webapp_server_builder 4/6] COPY . .                                                                                                                                    0.0s
 => CACHED [hoppscotch-aio webapp_server_builder 5/6] WORKDIR /usr/src/app/packages/hoppscotch-selfhost-web/webapp-server                                                                         0.0s
 => CACHED [hoppscotch-aio webapp_server_builder 6/6] RUN cargo build --release                                                                                                                   0.0s
 => CACHED [hoppscotch-aio backend_builder 1/6] WORKDIR /usr/src/app/packages/hoppscotch-backend                                                                                                  0.0s
 => CACHED [hoppscotch-aio fe_builder 1/2] WORKDIR /usr/src/app/packages/hoppscotch-selfhost-web                                                                                                  0.0s
 => CACHED [hoppscotch-aio base_builder  2/10] RUN apk add nodejs curl                                                                                                                            0.0s
 => CACHED [hoppscotch-aio base_builder  3/10] RUN sh -c "curl -qL https://www.npmjs.com/install.sh | env npm_install=10.9.2 sh"                                                                  0.0s
 => CACHED [hoppscotch-aio base_builder  4/10] WORKDIR /usr/src/app                                                                                                                               0.0s
 => CACHED [hoppscotch-aio base_builder  5/10] RUN apk add python3 make g++ zlib-dev brotli-dev c-ares-dev nghttp2-dev openssl-dev icu-dev                                                        0.0s
 => CACHED [hoppscotch-aio base_builder  6/10] RUN npm install -g pnpm@10.2.1                                                                                                                     0.0s
 => CACHED [hoppscotch-aio base_builder  7/10] COPY pnpm-lock.yaml .                                                                                                                              0.0s
 => CACHED [hoppscotch-aio base_builder  8/10] RUN pnpm fetch                                                                                                                                     0.0s
 => CACHED [hoppscotch-aio base_builder  9/10] COPY . .                                                                                                                                           0.0s
 => CACHED [hoppscotch-aio base_builder 10/10] RUN pnpm install -f --prefer-offline                                                                                                               0.0s
 => CACHED [hoppscotch-aio sh_admin_builder 1/3] WORKDIR /usr/src/app/packages/hoppscotch-sh-admin                                                                                                0.0s
 => CANCELED [hoppscotch-aio backend_builder 2/6] RUN pnpm exec prisma generate                                                                                                                   2.7s
 => ERROR [hoppscotch-aio sh_admin_builder 2/3] RUN pnpm run build --outDir dist-multiport-setup                                                                                                  2.2s
 => CANCELED [hoppscotch-aio fe_builder 2/2] RUN pnpm run generate                                                                                                                                3.1s
------                                                                                                                                                                                                 
 > [hoppscotch-aio sh_admin_builder 2/3] RUN pnpm run build --outDir dist-multiport-setup:                                                                                                             
1.481                                                                                                                                                                                                  
1.481 > hoppscotch-sh-admin@2025.2.2 build /usr/src/app/packages/hoppscotch-sh-admin                                                                                                                   
1.481 > vite build --outDir dist-multiport-setup                                                                                                                                                       
1.481                                                                                                                                                                                                  
1.906 failed to load config from /usr/src/app/packages/hoppscotch-sh-admin/vite.config.ts                                                                                                              
1.906 error during build:                                                                                                                                                                              
1.906 file:///usr/src/app/node_modules/.pnpm/@intlify+bundle-utils@9.0.0-beta.0_vue-i18n@10.0.4_vue@3.5.12_typescript@5.6.3__/node_modules/@intlify/bundle-utils/lib/index.mjs:4                       
1.906 import { LOCATION_STUB, detectHtmlTag, baseCompile } from '@intlify/message-compiler';                                                                                                           
1.906          ^^^^^^^^^^^^^                                                                                                                                                                           
1.906 SyntaxError: Named export 'LOCATION_STUB' not found. The requested module '@intlify/message-compiler' is a CommonJS module, which may not support all module.exports as named exports.
1.906 CommonJS modules can always be imported via the default export, for example using:
1.906 
1.906 import pkg from '@intlify/message-compiler';
1.906 const { LOCATION_STUB, detectHtmlTag, baseCompile } = pkg;
1.906 
1.906     at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
1.906     at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
1.906     at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
1.906     at async loadConfigFromBundledFile (file:///usr/src/app/node_modules/.pnpm/vite@5.4.9_@types+node@22.9.3_sass@1.80.3_terser@5.34.1/node_modules/vite/dist/node/chunks/dep-Cyk9bIUq.js:66680:15)
1.906     at async loadConfigFromFile (file:///usr/src/app/node_modules/.pnpm/vite@5.4.9_@types+node@22.9.3_sass@1.80.3_terser@5.34.1/node_modules/vite/dist/node/chunks/dep-Cyk9bIUq.js:66521:24)
1.906     at async resolveConfig (file:///usr/src/app/node_modules/.pnpm/vite@5.4.9_@types+node@22.9.3_sass@1.80.3_terser@5.34.1/node_modules/vite/dist/node/chunks/dep-Cyk9bIUq.js:66129:24)
1.906     at async build (file:///usr/src/app/node_modules/.pnpm/vite@5.4.9_@types+node@22.9.3_sass@1.80.3_terser@5.34.1/node_modules/vite/dist/node/chunks/dep-Cyk9bIUq.js:65226:18)
1.906     at async CAC.<anonymous> (file:///usr/src/app/node_modules/.pnpm/vite@5.4.9_@types+node@22.9.3_sass@1.80.3_terser@5.34.1/node_modules/vite/dist/node/cli.js:828:5)
1.918  ELIFECYCLE  Command failed with exit code 1.
------
failed to solve: process "/bin/sh -c pnpm run build --outDir dist-multiport-setup" did not complete successfully: exit code: 1

Steps to reproduce

Here is basically what I did to "properly" stop the existing instance and upgrade to the newest version:

  • docker compose down
  • cp docker-compose.yml sl-docker-compose.yml
  • git checkout .
  • git fetch --all --tags --prune
  • git checkout tags/2025.2.2
  • mv sl-docker-compose.yml docker-compose.yml
  • docker rmi hoppscotch-hoppscotch-aio
  • docker pull hoppscotch/hoppscotch:latest
  • docker compose --profile default up -d --build --no-deps --force-recreate

Logs and Screenshots


Environment

Production

Hoppscotch Version

Self-hosted

Interceptor

Not Applicable - Issue not related to network requests

Browsers Affected

No response

Operating System

Linux

Additional Information

No response

Originally created by @LordSimal on GitHub (Mar 18, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4907 ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Current behavior I tried to upgrade my self hosted AIO instance from 2025.2.1 to 2025.2.2 and now I get the following error: ``` root@scarecrow:~/hoppscotch# docker compose --profile default up -d --build --no-deps --force-recreate Compose now can delegate build to bake for better performances Just set COMPOSE_BAKE=true [+] Building 5.4s (29/64) docker:default => [hoppscotch-aio internal] load build definition from prod.Dockerfile 0.1s => => transferring dockerfile: 8.22kB 0.0s => [hoppscotch-aio internal] load metadata for docker.io/library/alpine:3.21.2 1.0s => [hoppscotch-aio internal] load metadata for docker.io/library/alpine:3.19.7 1.0s => [hoppscotch-aio internal] load metadata for docker.io/library/rust:1-alpine 1.0s => [hoppscotch-aio internal] load .dockerignore 0.2s => => transferring context: 352B 0.0s => [hoppscotch-aio internal] load build context 0.2s => => transferring context: 2.54MB 0.1s => [hoppscotch-aio caddy_builder 1/13] FROM docker.io/library/alpine:3.21.2@sha256:56fa17d2a7e7f168a043a2712e63aed1f8543aeafdcee47c58dcffe38ed51099 0.0s => [hoppscotch-aio webapp_server_builder 1/6] FROM docker.io/library/rust:1-alpine@sha256:bea885d2711087e67a9f7a7cd1a164976f4c35389478512af170730014d2452a 0.0s => [hoppscotch-aio base_builder 1/10] FROM docker.io/library/alpine:3.19.7@sha256:e5d0aea7f7d2954678a9a6269ca2d06e06591881161961ea59e974dff3f12377 0.0s => CACHED [hoppscotch-aio webapp_server_builder 2/6] WORKDIR /usr/src/app 0.0s => CACHED [hoppscotch-aio webapp_server_builder 3/6] RUN apk add --no-cache musl-dev 0.0s => CACHED [hoppscotch-aio webapp_server_builder 4/6] COPY . . 0.0s => CACHED [hoppscotch-aio webapp_server_builder 5/6] WORKDIR /usr/src/app/packages/hoppscotch-selfhost-web/webapp-server 0.0s => CACHED [hoppscotch-aio webapp_server_builder 6/6] RUN cargo build --release 0.0s => CACHED [hoppscotch-aio backend_builder 1/6] WORKDIR /usr/src/app/packages/hoppscotch-backend 0.0s => CACHED [hoppscotch-aio fe_builder 1/2] WORKDIR /usr/src/app/packages/hoppscotch-selfhost-web 0.0s => CACHED [hoppscotch-aio base_builder 2/10] RUN apk add nodejs curl 0.0s => CACHED [hoppscotch-aio base_builder 3/10] RUN sh -c "curl -qL https://www.npmjs.com/install.sh | env npm_install=10.9.2 sh" 0.0s => CACHED [hoppscotch-aio base_builder 4/10] WORKDIR /usr/src/app 0.0s => CACHED [hoppscotch-aio base_builder 5/10] RUN apk add python3 make g++ zlib-dev brotli-dev c-ares-dev nghttp2-dev openssl-dev icu-dev 0.0s => CACHED [hoppscotch-aio base_builder 6/10] RUN npm install -g pnpm@10.2.1 0.0s => CACHED [hoppscotch-aio base_builder 7/10] COPY pnpm-lock.yaml . 0.0s => CACHED [hoppscotch-aio base_builder 8/10] RUN pnpm fetch 0.0s => CACHED [hoppscotch-aio base_builder 9/10] COPY . . 0.0s => CACHED [hoppscotch-aio base_builder 10/10] RUN pnpm install -f --prefer-offline 0.0s => CACHED [hoppscotch-aio sh_admin_builder 1/3] WORKDIR /usr/src/app/packages/hoppscotch-sh-admin 0.0s => CANCELED [hoppscotch-aio backend_builder 2/6] RUN pnpm exec prisma generate 2.7s => ERROR [hoppscotch-aio sh_admin_builder 2/3] RUN pnpm run build --outDir dist-multiport-setup 2.2s => CANCELED [hoppscotch-aio fe_builder 2/2] RUN pnpm run generate 3.1s ------ > [hoppscotch-aio sh_admin_builder 2/3] RUN pnpm run build --outDir dist-multiport-setup: 1.481 1.481 > hoppscotch-sh-admin@2025.2.2 build /usr/src/app/packages/hoppscotch-sh-admin 1.481 > vite build --outDir dist-multiport-setup 1.481 1.906 failed to load config from /usr/src/app/packages/hoppscotch-sh-admin/vite.config.ts 1.906 error during build: 1.906 file:///usr/src/app/node_modules/.pnpm/@intlify+bundle-utils@9.0.0-beta.0_vue-i18n@10.0.4_vue@3.5.12_typescript@5.6.3__/node_modules/@intlify/bundle-utils/lib/index.mjs:4 1.906 import { LOCATION_STUB, detectHtmlTag, baseCompile } from '@intlify/message-compiler'; 1.906 ^^^^^^^^^^^^^ 1.906 SyntaxError: Named export 'LOCATION_STUB' not found. The requested module '@intlify/message-compiler' is a CommonJS module, which may not support all module.exports as named exports. 1.906 CommonJS modules can always be imported via the default export, for example using: 1.906 1.906 import pkg from '@intlify/message-compiler'; 1.906 const { LOCATION_STUB, detectHtmlTag, baseCompile } = pkg; 1.906 1.906 at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21) 1.906 at async ModuleJob.run (node:internal/modules/esm/module_job:217:5) 1.906 at async ModuleLoader.import (node:internal/modules/esm/loader:316:24) 1.906 at async loadConfigFromBundledFile (file:///usr/src/app/node_modules/.pnpm/vite@5.4.9_@types+node@22.9.3_sass@1.80.3_terser@5.34.1/node_modules/vite/dist/node/chunks/dep-Cyk9bIUq.js:66680:15) 1.906 at async loadConfigFromFile (file:///usr/src/app/node_modules/.pnpm/vite@5.4.9_@types+node@22.9.3_sass@1.80.3_terser@5.34.1/node_modules/vite/dist/node/chunks/dep-Cyk9bIUq.js:66521:24) 1.906 at async resolveConfig (file:///usr/src/app/node_modules/.pnpm/vite@5.4.9_@types+node@22.9.3_sass@1.80.3_terser@5.34.1/node_modules/vite/dist/node/chunks/dep-Cyk9bIUq.js:66129:24) 1.906 at async build (file:///usr/src/app/node_modules/.pnpm/vite@5.4.9_@types+node@22.9.3_sass@1.80.3_terser@5.34.1/node_modules/vite/dist/node/chunks/dep-Cyk9bIUq.js:65226:18) 1.906 at async CAC.<anonymous> (file:///usr/src/app/node_modules/.pnpm/vite@5.4.9_@types+node@22.9.3_sass@1.80.3_terser@5.34.1/node_modules/vite/dist/node/cli.js:828:5) 1.918  ELIFECYCLE  Command failed with exit code 1. ------ failed to solve: process "/bin/sh -c pnpm run build --outDir dist-multiport-setup" did not complete successfully: exit code: 1 ``` ### Steps to reproduce Here is basically what I did to "properly" stop the existing instance and upgrade to the newest version: - docker compose down - cp docker-compose.yml sl-docker-compose.yml - git checkout . - git fetch --all --tags --prune - git checkout tags/2025.2.2 - mv sl-docker-compose.yml docker-compose.yml - docker rmi hoppscotch-hoppscotch-aio - docker pull hoppscotch/hoppscotch:latest - docker compose --profile default up -d --build --no-deps --force-recreate ### Logs and Screenshots ```shell ``` ### Environment Production ### Hoppscotch Version Self-hosted ### Interceptor Not Applicable - Issue not related to network requests ### Browsers Affected _No response_ ### Operating System Linux ### Additional Information _No response_
kerem 2026-03-16 22:04:56 +03:00
Author
Owner

@LordSimal commented on GitHub (Mar 18, 2025):

Not directly the same issue but could be related to https://github.com/hoppscotch/hoppscotch/issues/4902 as well

<!-- gh-comment-id:2734552459 --> @LordSimal commented on GitHub (Mar 18, 2025): Not directly the same issue but could be related to https://github.com/hoppscotch/hoppscotch/issues/4902 as well
Author
Owner

@517feng commented on GitHub (Mar 19, 2025):

Not directly the same issue but could be related to #4902 as well

yes,exec docker compose --profile default up -d resulted in the same error message

<!-- gh-comment-id:2735107192 --> @517feng commented on GitHub (Mar 19, 2025): > Not directly the same issue but could be related to [#4902](https://github.com/hoppscotch/hoppscotch/issues/4902) as well yes,exec docker compose --profile default up -d resulted in the same error message
Author
Owner

@LordSimal commented on GitHub (Mar 19, 2025):

The weird thing is the fact, that even going back to 2025.2.1 doesn't fix the problem.
Smells to me like some JS Dependency 💩

<!-- gh-comment-id:2735439708 --> @LordSimal commented on GitHub (Mar 19, 2025): The weird thing is the fact, that even going back to 2025.2.1 doesn't fix the problem. Smells to me like some JS Dependency 💩
Author
Owner

@LordSimal commented on GitHub (Mar 19, 2025):

Sorry to directly ping @CuriousCorrelation but this is a rather pressing issue since - well - the instance is completely down and no one of my team can access the configured HTTP requests 😅

<!-- gh-comment-id:2735456704 --> @LordSimal commented on GitHub (Mar 19, 2025): Sorry to directly ping @CuriousCorrelation but this is a rather pressing issue since - well - the instance is completely down and no one of my team can access the configured HTTP requests 😅
Author
Owner

@LordSimal commented on GitHub (Mar 19, 2025):

To be more exact, the only difference between the default docker-compose.yml and my file is the following:

diff --git a/docker-compose.yml b/docker-compose.yml
index 2d708eb7..6c311d97 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -140,11 +140,12 @@ services:
     ports:
       - "5432:5432"
     user: postgres
+    volumes:
+      - pgdata:/var/lib/postgresql/data
     environment:
       # The default user defined by the docker image
       POSTGRES_USER: postgres
-      # NOTE: Please UPDATE THIS PASSWORD!
-      POSTGRES_PASSWORD: testpass
+      POSTGRES_PASSWORD: mysupersecretpasswordwhichwillnotgetleaked
       POSTGRES_DB: hoppscotch
     healthcheck:
       test:
@@ -246,3 +247,6 @@ services:
 #
 # Remember: The default and default-no-db profiles should not be mixed with individual service
 # profiles as they would conflict on ports.
+
+volumes:
+  pgdata:
<!-- gh-comment-id:2735518137 --> @LordSimal commented on GitHub (Mar 19, 2025): To be more exact, the only difference between the default docker-compose.yml and my file is the following: ``` diff --git a/docker-compose.yml b/docker-compose.yml index 2d708eb7..6c311d97 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -140,11 +140,12 @@ services: ports: - "5432:5432" user: postgres + volumes: + - pgdata:/var/lib/postgresql/data environment: # The default user defined by the docker image POSTGRES_USER: postgres - # NOTE: Please UPDATE THIS PASSWORD! - POSTGRES_PASSWORD: testpass + POSTGRES_PASSWORD: mysupersecretpasswordwhichwillnotgetleaked POSTGRES_DB: hoppscotch healthcheck: test: @@ -246,3 +247,6 @@ services: # # Remember: The default and default-no-db profiles should not be mixed with individual service # profiles as they would conflict on ports. + +volumes: + pgdata: ```
Author
Owner

@jamesgeorge007 commented on GitHub (Mar 19, 2025):

Hi, we've identified the root cause of this issue propagating from the dependency chain. It'll be addressed in the upcoming patch release.

<!-- gh-comment-id:2735540155 --> @jamesgeorge007 commented on GitHub (Mar 19, 2025): Hi, we've identified the root cause of this issue propagating from the dependency chain. It'll be addressed in the upcoming patch release.
Author
Owner

@LordSimal commented on GitHub (Mar 19, 2025):

2025.2.3 fixes this problem, thank you for the quick resolution 🙇🏻

<!-- gh-comment-id:2736313181 --> @LordSimal commented on GitHub (Mar 19, 2025): 2025.2.3 fixes this problem, thank you for the quick resolution 🙇🏻
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1851
No description provided.