(Translated by https://www.hiragana.jp/)
Cannot read property 'open' of undefined or null . · Issue #57 · grafana/xk6-sql · GitHub
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

Cannot read property 'open' of undefined or null . #57

Open
MohanscodeHub opened this issue Mar 12, 2024 · 1 comment
Open

Cannot read property 'open' of undefined or null . #57

MohanscodeHub opened this issue Mar 12, 2024 · 1 comment

Comments

@MohanscodeHub
Copy link

After building the new k6 binary for sql I tried creating a script file as attached but I get the issue mentioned below

Cannot read property 'open' of undefined or null
image

image
@szkiba
Copy link
Contributor

szkiba commented Oct 14, 2024

Hi @MohanscodeHub , Did you forget to set the CGO_ENABLED environment variable to 1 when building k6?

Windows

set CGO_ENABLED="1"
xk6 build --with github.com/grafana/xk6-sql

Linux

CGO_ENABLED="1" xk6 build --with github.com/grafana/xk6-sql

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

2 participants