adbkit icon indicating copy to clipboard operation
adbkit copied to clipboard

Import error after upgrade to 4.1.20

Open niranjan94 opened this issue 1 year ago • 3 comments

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."

niranjan94 avatar Nov 18 '24 07:11 niranjan94

i have this issue too

sopheakseng avatar Nov 27 '24 17:11 sopheakseng

Facing the same issue

irdkwmnsb avatar Dec 09 '24 13:12 irdkwmnsb

I think I should drop commonJS, It's time to switch to pure ESM, that looks to works fine now.

UrielCh avatar Dec 22 '24 13:12 UrielCh

V 5 is out, and only works as ESM woking fine with bunJS

UrielCh avatar Jul 02 '25 10:07 UrielCh