[GH-ISSUE #4903] [bug]: Self hosted build error No "exports" main defined in @intlify/bundle-utils #1847

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

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

Is there an existing issue for this?

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

Current behavior

This happens when I run pnpm run generate or pnpm -r do-build-prod. The error specifically mentions @intlify/bundle-utils@3.4.0 and the message “No "exports" main defined.”

Steps to Reproduce

  1. Fork or clone the latest main branch of the Hoppscotch repo.
  2. (using Node.js v22.14.0).
  3. Run pnpm install.
  4. Attempt npm run generate or pnpm -r do-build-prod.
  5. The build fails with the above error.

Expected Behavior

The build should complete successfully without throwing the “No "exports" main defined in @intlify/bundle-utils” error.

Additional Information

  • Node version: v22.14.0
  • pnpm version: 8.x
  • Operating System: macOS (or specify your OS)

It appears that multiple packages or sub-packages in the monorepo might be pulling in @intlify/bundle-utils@3.4.0 transitive dependencies. Attempts to remove or override this package in my local fork haven’t resolved the issue.

If anyone has encountered a similar error or can suggest an official fix or workaround, it would be greatly appreciated.

Thank you in advance!

Steps to reproduce

Steps to Reproduce

  1. Fork or clone the latest main branch of the Hoppscotch repo.
  2. (using Node.js v22.14.0).
  3. Run pnpm install.
  4. Attempt npm run generate or pnpm -r do-build-prod.
  5. The build fails with the above error.

Logs and Screenshots

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /Users/username/WebstormProjects/hoppscotch/node_modules/.pnpm/@intlify+bundle-utils@3.4.0_vue-i18n…
│     at exportsNotFound (node:internal/modules/esm/resolve:314:10)
│     at packageExportsResolve (node:internal/modules/esm/resolve:604:13)
│     at resolveExports (node:internal/modules/cjs/loader:639:36)
│     at Function._findPath (node:internal/modules/cjs/loader:728:31)
│     at Function._resolveFilename (node:internal/modules/cjs/loader:1211:27)
│     at Function._load (node:internal/modules/cjs/loader:1055:27)
│     at TracingChannel.traceSync (node:diagnostics_channel:322:14)
│     at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
│     at Module.require (node:internal/modules/cjs/loader:1311:12)
│     at require (node:internal/modules/helpers:136:16)
│  ELIFECYCLE  Command failed with exit code 1.
└─ Failed in 706ms at /Users/username/WebstormProjects/hoppscotch/packages/hoppscotch-selfhost-web
/Users/username/WebstormProjects/hoppscotch/packages/hoppscotch-selfhost-web:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @hoppscotch/selfhost-web@2025.2.2 do-build-prod: `pnpm run build`
Exit status 1

Environment

Production

Hoppscotch Version

Self-hosted

Interceptor

Browser - Web App

Browsers Affected

No response

Operating System

None

Additional Information

No response

Originally created by @SanderYaz on GitHub (Mar 18, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4903 ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Current behavior This happens when I run `pnpm run generate` or `pnpm -r do-build-prod`. The error specifically mentions `@intlify/bundle-utils@3.4.0` and the message “No "exports" main defined.” ### Steps to Reproduce 1. Fork or clone the latest `main` branch of the Hoppscotch repo. 2. (using Node.js v22.14.0). 3. Run `pnpm install`. 4. Attempt `npm run generate` or `pnpm -r do-build-prod`. 5. The build fails with the above error. ### Expected Behavior The build should complete successfully without throwing the “No "exports" main defined in @intlify/bundle-utils” error. ### Additional Information - **Node version**: v22.14.0 - **pnpm version**: 8.x - **Operating System**: macOS (or specify your OS) It appears that multiple packages or sub-packages in the monorepo might be pulling in `@intlify/bundle-utils@3.4.0` transitive dependencies. Attempts to remove or override this package in my local fork haven’t resolved the issue. If anyone has encountered a similar error or can suggest an official fix or workaround, it would be greatly appreciated. **Thank you in advance!** ### Steps to reproduce ### Steps to Reproduce 1. Fork or clone the latest `main` branch of the Hoppscotch repo. 2. (using Node.js v22.14.0). 3. Run `pnpm install`. 4. Attempt `npm run generate` or `pnpm -r do-build-prod`. 5. The build fails with the above error. ### Logs and Screenshots ```shell Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /Users/username/WebstormProjects/hoppscotch/node_modules/.pnpm/@intlify+bundle-utils@3.4.0_vue-i18n… │ at exportsNotFound (node:internal/modules/esm/resolve:314:10) │ at packageExportsResolve (node:internal/modules/esm/resolve:604:13) │ at resolveExports (node:internal/modules/cjs/loader:639:36) │ at Function._findPath (node:internal/modules/cjs/loader:728:31) │ at Function._resolveFilename (node:internal/modules/cjs/loader:1211:27) │ at Function._load (node:internal/modules/cjs/loader:1055:27) │ at TracingChannel.traceSync (node:diagnostics_channel:322:14) │ at wrapModuleLoad (node:internal/modules/cjs/loader:220:24) │ at Module.require (node:internal/modules/cjs/loader:1311:12) │ at require (node:internal/modules/helpers:136:16) │  ELIFECYCLE  Command failed with exit code 1. └─ Failed in 706ms at /Users/username/WebstormProjects/hoppscotch/packages/hoppscotch-selfhost-web /Users/username/WebstormProjects/hoppscotch/packages/hoppscotch-selfhost-web:  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @hoppscotch/selfhost-web@2025.2.2 do-build-prod: `pnpm run build` Exit status 1 ``` ### Environment Production ### Hoppscotch Version Self-hosted ### Interceptor Browser - Web App ### Browsers Affected _No response_ ### Operating System None ### Additional Information _No response_
kerem 2026-03-16 22:04:34 +03:00
Author
Owner

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

Hi, closing this issue since it is resolved in the latest update. Please let us know if you have any feedback.

<!-- gh-comment-id:2742544104 --> @jamesgeorge007 commented on GitHub (Mar 21, 2025): Hi, closing this issue since it is resolved in the latest update. Please let us know if you have any feedback.
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#1847
No description provided.