Skip to content

fix: Cannot read properties of undefined (reading 'default')#2084

Closed
idranme wants to merge 1 commit intoprotobufjs:masterfrom
idranme:master
Closed

fix: Cannot read properties of undefined (reading 'default')#2084
idranme wants to merge 1 commit intoprotobufjs:masterfrom
idranme:master

Conversation

@idranme
Copy link
Copy Markdown

@idranme idranme commented Jul 4, 2025

Fixes #2040

const $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
                             ^

TypeError: Cannot read properties of undefined (reading 'default')
    at file:///*.js:8:30
    at ModuleJob.run (node:internal/modules/esm/module_job:274:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:644:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)

@dcodeIO
Copy link
Copy Markdown
Member

dcodeIO commented Apr 24, 2026

Thanks, addressed in #2151

@dcodeIO dcodeIO closed this Apr 24, 2026
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.

TypeError: Cannot read properties of undefined (reading 'default')

2 participants