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

Remote-Write fails with import on k6 #18

Closed
sharathfeb12 opened this issue Apr 10, 2022 · 1 comment
Closed

Remote-Write fails with import on k6 #18

sharathfeb12 opened this issue Apr 10, 2022 · 1 comment

Comments

@sharathfeb12
Copy link

root@bastion:~# go version
go version go1.18 linux/amd64

root@bastion:~# cat k.js
import remote from 'k6/x/remotewrite';

root@bastion:~# k6 run k.js

      /\      |‾‾| /‾‾/   /‾‾/
 /\  /  \     |  |/  /   /  /
/  \/    \    |     (   /   ‾‾\

/ \ | |\ \ | (‾) |
/ __________ \ |__| _\ ____/ .io

ERRO[0000] unknown module: k6/x/remotewrite
at go.k6.io/k6/js.(*InitContext).Require-fm (native)
at file:///root/k.js:1:0(6) hint="script exception"

@mstoykov
Copy link
Contributor

Hi @sharathfeb12 , sorry for the slow reply.

xk6 builds a new binary called k6 in the local directory when you run xk6 build ..... To run it you need to use ./k6 run ... isntead of k6 run which will run whatever k6 is in your $PATH

@mstoykov mstoykov closed this as not planned Won't fix, can't repro, duplicate, stale Jan 13, 2023
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