bytenode/bytenode

WDIO8/Bytenode compatibility regression

franck-jude opened this issue · 0 comments

Hello,

I've just reported a bug to WDIO that involves Bytenode usage, so maybe asking on both side might help;
Here is the bug I've logged:

webdriverio/webdriverio#11007

We were compiling js files with bytenode then executing them with Wdio framework. We could specify bytenode as a required module for the WDIO/Cucumber framework and the files were read and executed smoothly with V7 ; however it does not seems tobe working anymore with WDIO V8 that is now supposed to be deprecate CJS and use only ESM as stated on the release note:
https://webdriver.io/fr/blog/2022/12/01/webdriverio-v8-released/

Some issues related to this change were already reported, so that's a blind guess but I was wondering if this encoding issue could be related too, especially as I've also read here that ESM is not well supported by bytenode (ie there: #131 )
Any suggestion / workaround would be appreciated !

Here is a sample project that can help reproducing the issue (just have give a try installing packages for v7, running npm run wdio and trying the same with the v8 stack)

bytenodes - WDIO8 issue.zip

Thanks a lot,

Best regards

Franck