I’m wondering about how to use the binary created by xk6 build <> --with github.com/<my/module>="<path/to/module>"
When I build like mentioned above and place the k6
resulting file in the k6 script folder, then launching with k6 run script.js
, I’m getting an unknown module
error.
Still, I can launch k6 with my local xk6 extension by running xk6 run <path/to/script>
from the extension project folder, and it works fine (it finds and uses my extension).
What am I missing to launch a k6 run script.js
using the binary?