-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Redefinition of RefreshRuntime w/ Vite React app #419
Comments
@WilliamImm thanks for raising the issue. Do you think it is possible to create a reproducible example of this? |
Of course. I've uploaded a reproducible build based on the Vite React TS starter. Use The most relevant files to modify are Hopefully this works, and if you need more information, please let me know. |
@WilliamImm mind sharing this as GitHub repository? |
Of course! https://github.com/WilliamImm/wdio-vitereact-issuereproduction |
Thanks @WilliamImm , I was able to reproduce this. We greatly appreciate any contributions that help resolve the bug. While we understand that active contributors have their own priorities, we kindly request your assistance if you rely on this bug being fixed. We encourage you to take a look at our contribution guidelines or join our friendly Discord development server, where you can ask any questions you may have. Thank you for your support, and cheers! |
There's an issue with this service that causes the react-refresh module to be loaded twice in Vite-based React apps, when testing with Webdriver.IO and with this service added to the configuration. It kinda seems like the preamble is being run twice. This prevents any tests reliant on the React DOM from working.
Here's an example of the broken preamble loaded into the browser:
For comparision, it should look like this:
I'm using Node 20.10.0, Vite 5.0.12, Webdriver.IO 8.29.7, and wdio-vite-service 1.0.6. Disabling the service in wdio.conf.ts and manually pointing the baseurl to Vite's expected port works as expected.
The text was updated successfully, but these errors were encountered: