Skip to content

fix: add default export condition for cypress.config subpath#45

Merged
darkmavis1980 merged 1 commit into
HubSpotWebTeam:mainfrom
jucallej:bugfix/add-default
Jun 18, 2026
Merged

fix: add default export condition for cypress.config subpath#45
darkmavis1980 merged 1 commit into
HubSpotWebTeam:mainfrom
jucallej:bugfix/add-default

Conversation

@jucallej

Copy link
Copy Markdown

Add default export condition for cypress.config subpath

Without a "default" (or "import") condition, Node's ESM resolver cannot match the ./cypress.config subpath export, causing:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './cypress.config'
is not defined by "exports"

This surfaces in projects that load cypress.config.ts via ts (ESM). Adding "default" pointing to the existing .cjs file is

Without a "default" (or "import") condition, Node's ESM resolver cannot
match the ./cypress.config subpath export, causing:

  Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './cypress.config'
  is not defined by "exports"

This surfaces in projects that load cypress.config.ts via ts (ESM).
Adding "default" pointing to the existing .cjs file is
@jucallej jucallej requested a review from a team as a code owner June 18, 2026 13:29
@darkmavis1980 darkmavis1980 merged commit a15f847 into HubSpotWebTeam:main Jun 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants