{"id":22377657,"url":"https://github.com/leon/bug-pixelstreaming-eventemitter","last_synced_at":"2025-10-28T06:35:56.117Z","repository":{"id":264926641,"uuid":"893757496","full_name":"leon/bug-pixelstreaming-eventemitter","owner":"leon","description":"Reproduction repo for event emitter bug in @epicgames-ps/lib-pixelstreamingfrontend-ue5.5 v0.3.2","archived":false,"fork":false,"pushed_at":"2024-11-25T06:48:11.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-17T16:05:33.818Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-25T06:44:53.000Z","updated_at":"2024-11-25T06:48:14.000Z","dependencies_parsed_at":"2024-11-26T21:20:45.111Z","dependency_job_id":null,"html_url":"https://github.com/leon/bug-pixelstreaming-eventemitter","commit_stats":null,"previous_names":["leon/bug-pixelstreaming-eventemitter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leon/bug-pixelstreaming-eventemitter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leon%2Fbug-pixelstreaming-eventemitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leon%2Fbug-pixelstreaming-eventemitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leon%2Fbug-pixelstreaming-eventemitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leon%2Fbug-pixelstreaming-eventemitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leon","download_url":"https://codeload.github.com/leon/bug-pixelstreaming-eventemitter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leon%2Fbug-pixelstreaming-eventemitter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281397340,"owners_count":26493908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-04T22:15:02.983Z","updated_at":"2025-10-28T06:35:56.088Z","avatar_url":"https://github.com/leon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reproduction for event emitter bug\n\nWhen using v0.3.2 of @epicgames-ps/lib-pixelstreamingfrontend-ue5.5 it will fail because @epicgames-ps+lib-pixelstreamingcommon-ue5.5 is getting included in frontend code\n\n```bash\npnpm install\npnpm build\n```\n\n```bash\nvite v5.4.11 building for production...\n[plugin:vite:resolve] [plugin vite:resolve] Module \"events\" has been externalized for browser compatibility, imported by \"/Users/leon/bug/node_modules/.pnpm/@epicgames-ps+lib-pixelstreamingcommon-ue5.5@0.1.1/node_modules/@epicgames-ps/lib-pixelstreamingcommon-ue5.5/build/esm/Protocol/SignallingProtocol.js\". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.\n[plugin:vite:resolve] [plugin vite:resolve] Module \"events\" has been externalized for browser compatibility, imported by \"/Users/leon/bug/node_modules/.pnpm/@epicgames-ps+lib-pixelstreamingcommon-ue5.5@0.1.1/node_modules/@epicgames-ps/lib-pixelstreamingcommon-ue5.5/build/esm/Transport/WebSocketTransportNJS.js\". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.\n[plugin:vite:resolve] [plugin vite:resolve] Module \"events\" has been externalized for browser compatibility, imported by \"/Users/leon/bug/node_modules/.pnpm/@epicgames-ps+lib-pixelstreamingcommon-ue5.5@0.1.1/node_modules/@epicgames-ps/lib-pixelstreamingcommon-ue5.5/build/esm/Transport/WebSocketTransport.js\". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.\n✓ 98 modules transformed.\nx Build failed in 391ms\nerror during build:\nnode_modules/.pnpm/@epicgames-ps+lib-pixelstreamingcommon-ue5.5@0.1.1/node_modules/@epicgames-ps/lib-pixelstreamingcommon-ue5.5/build/esm/Transport/WebSocketTransport.js (3:9): \"EventEmitter\" is not exported by \"__vite-browser-external\", imported by \"node_modules/.pnpm/@epicgames-ps+lib-pixelstreamingcommon-ue5.5@0.1.1/node_modules/@epicgames-ps/lib-pixelstreamingcommon-ue5.5/build/esm/Transport/WebSocketTransport.js\".\nfile: /Users/leon/bug/node_modules/.pnpm/@epicgames-ps+lib-pixelstreamingcommon-ue5.5@0.1.1/node_modules/@epicgames-ps/lib-pixelstreamingcommon-ue5.5/build/esm/Transport/WebSocketTransport.js:3:9\n\n1: // Copyright Epic Games, Inc. All Rights Reserved.\n2: import { Logger } from '../Logger/Logger';\n3: import { EventEmitter } from 'events';\n            ^\n4: /**\n5:  * The controller for the WebSocket and all associated methods\n\n    at getRollupError (file:///Users/leon/bug/node_modules/.pnpm/rollup@4.27.4/node_modules/rollup/dist/es/shared/parseAst.js:396:41)\n    at error (file:///Users/leon/bug/node_modules/.pnpm/rollup@4.27.4/node_modules/rollup/dist/es/shared/parseAst.js:392:42)\n    at Module.error (file:///Users/leon/bug/node_modules/.pnpm/rollup@4.27.4/node_modules/rollup/dist/es/shared/node-entry.js:15593:16)\n    at Module.traceVariable (file:///Users/leon/bug/node_modules/.pnpm/rollup@4.27.4/node_modules/rollup/dist/es/shared/node-entry.js:16042:29)\n    at ModuleScope.findVariable (file:///Users/leon/bug/node_modules/.pnpm/rollup@4.27.4/node_modules/rollup/dist/es/shared/node-entry.js:13825:39)\n    at ChildScope.findVariable (file:///Users/leon/bug/node_modules/.pnpm/rollup@4.27.4/node_modules/rollup/dist/es/shared/node-entry.js:5288:38)\n    at Identifier.bind (file:///Users/leon/bug/node_modules/.pnpm/rollup@4.27.4/node_modules/rollup/dist/es/shared/node-entry.js:5071:40)\n    at ClassDeclaration.bind (file:///Users/leon/bug/node_modules/.pnpm/rollup@4.27.4/node_modules/rollup/dist/es/shared/node-entry.js:2658:23)\n    at ExportNamedDeclaration.bind (file:///Users/leon/bug/node_modules/.pnpm/rollup@4.27.4/node_modules/rollup/dist/es/shared/node-entry.js:11739:27)\n    at Program.bind (file:///Users/leon/bug/node_modules/.pnpm/rollup@4.27.4/node_modules/rollup/dist/es/shared/node-entry.js:2654:28)\n ELIFECYCLE  Command failed with exit code 1.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleon%2Fbug-pixelstreaming-eventemitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleon%2Fbug-pixelstreaming-eventemitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleon%2Fbug-pixelstreaming-eventemitter/lists"}