-
Notifications
You must be signed in to change notification settings - Fork 512
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
fix(core): import mjs path correctly when running on windows #2662
Conversation
thanks @thrandale! Is the issue due to a missing relative path? ie. in your example |
@hassy Even using a relative path, it still fails with the same error. When it does the |
I can confirm this - we have this problem only on windows, I can run it on macos without error. This is making the artillery completely unusable on windows if we have typescript configured to compile playwright tests to esm modules. |
Hi @thrandale 👋 ! Thanks for the contribution. We have now added windows tests to CI, so we could confirm fixes like this. I've opened #3293 with your fix and ran our full suite against it, and it seems to work 👍 . If you want to rebase this branch with Thanks again! |
…unner file with a .mjs extension
Thanks @bernardobridge. I have rebased my branch off |
Hi @thrandale, thanks for that. I'm merging this as the tests as passing (they appear red, but it's a bug that happens when running against contributor PR's). Thanks again for the fix! It'll be out in 2.0.19 next week. |
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]
when using a artillery runner file with a .mjs extension
This fixes issue #2661