Skip to content

fix(Table): import the components package in Node - #2884

Draft
jcosta33 wants to merge 2 commits into
mainfrom
fix/table-utils-node-import
Draft

jcosta33 wants to merge 2 commits into
mainfrom
fix/table-utils-node-import

Conversation

@jcosta33

Copy link
Copy Markdown
Contributor

What

Table/utils.ts built its list of interactive element classes (HTMLButtonElement, HTMLAnchorElement, HTMLInputElement) at module load. Those globals do not exist in Node, so importing @frontify/fondue-components during server rendering or in a Node test throws ReferenceError: HTMLButtonElement is not defined, even when the Table is never used.

The list is now read inside shouldIgnoreRowClick, when a row click is checked. Behavior in the browser is unchanged.

Verification

  • New Table/__tests__/utils.node.spec.ts runs in the Node environment, the way the scripts/buildManifest tests already do. It fails with the ReferenceError on main and passes with this change.
  • The existing Table unit tests pass (18 tests).
  • Changeset: @frontify/fondue-components patch.

@changeset-bot

changeset-bot Bot commented Oct 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d2afa45

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@frontify/fondue-components Patch
@frontify/fondue Patch
@frontify/fondue-sdk Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify

netlify Bot commented Oct 10, 2026

Copy link
Copy Markdown

✅ Deploy Preview for fondue-components ready!

Name Link
🔨 Latest commit d2afa45
🔍 Latest deploy log https://app.netlify.com/projects/fondue-components/deploys/6aca51f931a918000918f7e1
😎 Deploy Preview https://deploy-preview-2884.components.fondue-components.frontify.com
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

This branch has not been deployed

No deployments
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.

1 participant