[GH-ISSUE #4902] [bug]: "docker compose --profile app up -d" error #1846

Closed
opened 2026-03-16 22:04:34 +03:00 by kerem · 1 comment
Owner

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

Is there an existing issue for this?

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

Current behavior

use main branch,exec "docker compose --profile app up -d" fail
node -v
v18.18.0
npm -v
9.8.1
pnpm -v
10.6.4

Steps to reproduce

cmd exec "docker compose --profile app up -d"

Logs and Screenshots

=> CANCELED [hoppscotch-app webapp_server_builder 4/6] COPY . .                                                   1.6s
 => ERROR [hoppscotch-app fe_builder 2/2] RUN pnpm run generate                                                    1.4s
------
 > [hoppscotch-app fe_builder 2/2] RUN pnpm run generate:
0.632
0.632 > @hoppscotch/selfhost-web@2025.2.2 generate /usr/src/app/packages/hoppscotch-selfhost-web
0.632 > pnpm run build
0.632
0.963
0.963 > @hoppscotch/selfhost-web@2025.2.2 build /usr/src/app/packages/hoppscotch-selfhost-web
0.963 > node --max_old_space_size=4096 ./node_modules/vite/bin/vite.js build
0.963
1.263 failed to load config from /usr/src/app/packages/hoppscotch-selfhost-web/vite.config.ts
1.264 error during build:
1.264 file:///usr/src/app/node_modules/.pnpm/@intlify+vite-plugin-vue-i18n@7.0.0_vite@5.4.9_@types+node@22.9.3_sass@1.80.3_terser@5._529effd01eb6119b5003bfc0c7f21e50/node_modules/@intlify/vite-plugin-vue-i18n/lib/index.mjs:3
1.264 import { isArray, isString, isBoolean, isEmptyObject, generateCodeFrame } from '@intlify/shared';
1.264                                                       ^^^^^^^^^^^^^^^^^
1.264 SyntaxError: Named export 'generateCodeFrame' not found. The requested module '@intlify/shared' is a CommonJS module, which may not support all module.exports as named exports.
1.264 CommonJS modules can always be imported via the default export, for example using:
1.264
1.264 import pkg from '@intlify/shared';
1.264 const { isArray, isString, isBoolean, isEmptyObject, generateCodeFrame } = pkg;
1.264
1.264     at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
1.264     at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
1.264     at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
1.264     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.264     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.264     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.264     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.264     at async CAC.<anonymous> (file:///usr/src/app/node_modules/.pnpm/vite@5.4.9_@types+node@22.9.3_sass@1.80.3_ter[+] Running 2/3_modules/vite/dist/node/cli.js:828:5)
 ✔ Service hoppscotch-backend  Built                                                                             205.8s
 ✔ Service hoppscotch-migrate  Built                                                                             205.8s
 - Service hoppscotch-app      Building                                                                           17.8s
failed to solve: process "/bin/sh -c pnpm run generate" did not complete successfully: exit code: 1

Environment

Deploy preview

Hoppscotch Version

Self-hosted

Interceptor

Not Applicable - Issue not related to network requests

Browsers Affected

No response

Operating System

Windows

Additional Information

No response

Originally created by @517feng on GitHub (Mar 18, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4902 ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Current behavior use main branch,exec "docker compose --profile app up -d" fail node -v v18.18.0 npm -v 9.8.1 pnpm -v 10.6.4 ### Steps to reproduce cmd exec "docker compose --profile app up -d" ### Logs and Screenshots ```shell => CANCELED [hoppscotch-app webapp_server_builder 4/6] COPY . . 1.6s => ERROR [hoppscotch-app fe_builder 2/2] RUN pnpm run generate 1.4s ------ > [hoppscotch-app fe_builder 2/2] RUN pnpm run generate: 0.632 0.632 > @hoppscotch/selfhost-web@2025.2.2 generate /usr/src/app/packages/hoppscotch-selfhost-web 0.632 > pnpm run build 0.632 0.963 0.963 > @hoppscotch/selfhost-web@2025.2.2 build /usr/src/app/packages/hoppscotch-selfhost-web 0.963 > node --max_old_space_size=4096 ./node_modules/vite/bin/vite.js build 0.963 1.263 failed to load config from /usr/src/app/packages/hoppscotch-selfhost-web/vite.config.ts 1.264 error during build: 1.264 file:///usr/src/app/node_modules/.pnpm/@intlify+vite-plugin-vue-i18n@7.0.0_vite@5.4.9_@types+node@22.9.3_sass@1.80.3_terser@5._529effd01eb6119b5003bfc0c7f21e50/node_modules/@intlify/vite-plugin-vue-i18n/lib/index.mjs:3 1.264 import { isArray, isString, isBoolean, isEmptyObject, generateCodeFrame } from '@intlify/shared'; 1.264 ^^^^^^^^^^^^^^^^^ 1.264 SyntaxError: Named export 'generateCodeFrame' not found. The requested module '@intlify/shared' is a CommonJS module, which may not support all module.exports as named exports. 1.264 CommonJS modules can always be imported via the default export, for example using: 1.264 1.264 import pkg from '@intlify/shared'; 1.264 const { isArray, isString, isBoolean, isEmptyObject, generateCodeFrame } = pkg; 1.264 1.264 at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21) 1.264 at async ModuleJob.run (node:internal/modules/esm/module_job:217:5) 1.264 at async ModuleLoader.import (node:internal/modules/esm/loader:316:24) 1.264 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.264 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.264 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.264 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.264 at async CAC.<anonymous> (file:///usr/src/app/node_modules/.pnpm/vite@5.4.9_@types+node@22.9.3_sass@1.80.3_ter[+] Running 2/3_modules/vite/dist/node/cli.js:828:5) ✔ Service hoppscotch-backend Built 205.8s ✔ Service hoppscotch-migrate Built 205.8s - Service hoppscotch-app Building 17.8s failed to solve: process "/bin/sh -c pnpm run generate" did not complete successfully: exit code: 1 ``` ### Environment Deploy preview ### Hoppscotch Version Self-hosted ### Interceptor Not Applicable - Issue not related to network requests ### Browsers Affected _No response_ ### Operating System Windows ### Additional Information _No response_
kerem 2026-03-16 22:04:34 +03:00
Author
Owner

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

Pretty sure this is fixed if you upgrade to 2025.2.3

<!-- gh-comment-id:2736344953 --> @LordSimal commented on GitHub (Mar 19, 2025): Pretty sure this is fixed if you upgrade to 2025.2.3
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#1846
No description provided.