Skip to content

[v8] Must call super constructor in derived class before accessing 'this' or returning from derived constructor #22186

@niclimcy

Description

@niclimcy

Describe the bug

While using vite 8 to transpile my vue project, a dependency @yume-chan/adb-daemon-webusb broke after building the project for production.

installHook.js:1 ReferenceError: Must call super constructor in derived class before accessing 'this' or returning from derived constructor
    at Object.start (wrap-readable.js:31:17)
    at new Mo (wrap-readable.js:26:9)
    at Po.wrapReadable (duplex.js:30:16)
    at new ol (device.js:74:33)
    at e.connect (device.js:211:16)
    at async x (AdbClient.vue:83:24)

Reproduction

https://github.com/lineageos-infra/updater-client/tree/71909c6ca8684749382e43e0795d8ba6ae0a1f69

Steps to reproduce

Run

yarn install
yarn build
yarn preview

Go to http://localhost:4173/flash/adb on a Chromium based browser (Chrome/Edge)
Plug in an Android device with Android Debugging Bridge (ADB) enabled and press connect.

System Info

System:
    OS: macOS 26.4
    CPU: (10) arm64 Apple M1 Pro
    Memory: 2.10 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 24.14.0 - /Users/niclim/.local/state/fnm_multishells/99767_1775570432266/bin/node
    Yarn: 1.22.22 - /Users/niclim/.local/state/fnm_multishells/99767_1775570432266/bin/yarn
    npm: 11.9.0 - /Users/niclim/.local/state/fnm_multishells/99767_1775570432266/bin/npm
    pnpm: 10.32.1 - /Users/niclim/.local/state/fnm_multishells/99767_1775570432266/bin/pnpm
    bun: 1.3.11 - /opt/homebrew/bin/bun
  Browsers:
    Chrome: 146.0.7680.178
    Safari: 26.4
  npmPackages:
    @vitejs/plugin-vue: ^6.0.5 => 6.0.5 
    vite: ^8.0.6 => 8.0.6

Used Package Manager

yarn

Logs

Log exceeds character limit: https://gist.github.com/niclimcy/e3e66fdc4a6fcd51feeefc8554656e76

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: upstreamBug in a dependency of Vitep2-edge-caseBug, but has workaround or limited in scope (priority)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions