adbkit
adbkit copied to clipboard
Import error after upgrade to 4.1.20
require() of ES Module /home/app/node_modules/.pnpm/[email protected]/node_modules/promise-duplex/lib/promise-duplex.js from /home/app/node_modules/.pnpm/@[email protected]/node_modules/@u4/adbkit/dist/adb/thirdparty/scrcpy/Scrcpy.js not supported.
Instead change the require of promise-duplex.js in /home/app/node_modules/.pnpm/@[email protected]/node_modules/@u4/adbkit/dist/adb/thirdparty/scrcpy/Scrcpy.js to a dynamic import() which is available in all CommonJS modules."
i have this issue too
Facing the same issue
I think I should drop commonJS, It's time to switch to pure ESM, that looks to works fine now.
V 5 is out, and only works as ESM woking fine with bunJS