Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WDIO8/Bytenode compatibility regression #221

Open
franck-jude opened this issue Aug 24, 2023 · 0 comments
Open

WDIO8/Bytenode compatibility regression #221

franck-jude opened this issue Aug 24, 2023 · 0 comments

Comments

@franck-jude
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant