Skip to content

Cannot access invalid private field 'app.#errorHandler' #3671

Closed
@TiBianMod

Description

@TiBianMod

What version of Hono are you using?

4.6.10

What runtime/platform is your app running on? (with version if possible)

bun

What steps can reproduce the bug?

related of using bull-board with Hono
open issues: felixmosh/bull-board#843

What is the expected behavior?

No response

What do you see instead?

84 |   #errorHandler = errorHandler;
85 |   route(path, app) {
86 |     const subApp = this.basePath(path);
87 |     app.routes.map((r) => {
88 |       let handler;
89 |       if (app.#errorHandler === errorHandler) {
               ^
TypeError: Cannot access invalid private field (evaluating 'app.#errorHandler')
      at /Users/tt/Code/bull-board/examples/with-hono/node_modules/hono/dist/hono-base.js:89:11
      at map (1:11)
      at route (/Users/tt/Code/bull-board/examples/with-hono/node_modules/hono/dist/hono-base.js:87:16)
      at /Users/tt/Code/bull-board/examples/with-hono/index.js:55:7

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions