-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Having Invalid Regular Expression when using url lib #1834
Comments
How exactly have you bundled your script before you ran it with k6? browserify, webpack? please give us the complete steps we can use to reproduce this behavior... Also, you might try to upgrade to k6 v0.30.0, it has some changes in the JS runtime we use that are related to regular expressions, so it might fix your problem. |
Isn't the "invalid repeat count" error a limitation of Go's There's not much we can do in that case. |
Yeah, seems so, and yes, it's not something we can change in k6 or even goja... 😞 Sorry, @wsee911, I'm not sure where |
I see, but to reply to @na-- question, I am using webpack and ts-loader to bundle the script. |
@wsee911, can you post a complete example reproduces this issue in a github gist? Both a simple k6 TS script and a webpack config that result in a faulty script? I tried using the snippet you provided with https://github.com/k6io/template-typescript and that didn't result in the error. I'm asking, since it might be worth tracking down which JS library is responsible for the unusual regex and submitting a small PR to fix it, if it's simple. |
Hi so been searching around and realise this was the issue that has been plaguing me this few days. As webpack was having trouble bundling it. Gonna close this bug as its not a k6 issue. |
I am getting an
Invalid regular expression (re2)
when usingimport "url"
. I have gone through and isolated that this lib when imported is giving issues.Environment
Expected Behavior
The test should build normally with using the url lib
Actual Behavior
It is throwing invalid regular expression when k6 is building.
Screenshot above on the error.
Steps to Reproduce the Problem
May try using the below code to run the load test.
The text was updated successfully, but these errors were encountered: