Skip to content

chore(examples): fix EventEmitter error in built examples - #3591

Open
Jo-Byr wants to merge 1 commit into
Kitware:masterfrom
Jo-Byr:fix-event-emitter-error-in-built-examples
Open

chore(examples): fix EventEmitter error in built examples#3591
Jo-Byr wants to merge 1 commit into
Kitware:masterfrom
Jo-Byr:fix-event-emitter-error-in-built-examples

Conversation

@Jo-Byr

@Jo-Byr Jo-Byr commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Context

Some examples fail to load due to an EventEmitter heritage error.
This was supposed to fixed in 14028ec, but it only fixed it for examples ran with npm run example not in build-examples version.

Results

The error is fixed in build-examples mode

Changes

Added nodePolyFills to example plugins use in viteBuild in build-examples.mjs, mirroring createEsmConfig and createUmdConfig

PR and Code Checklist

  • semantic-release commit messages
  • Run npm run reformat to have correctly formatted code

Fix EventEmitter error in built examples that was fixed in vite dev
server in 14028ec
@Jo-Byr
Jo-Byr requested a review from daker July 29, 2026 06:48
@Jo-Byr Jo-Byr self-assigned this Jul 29, 2026

@daker daker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

2 participants