Getting below error while running the k6 script mentioned in the Readme on below kafka extension using this command:
./k6 run script.js
Build k6 with xk6 using below command:
./xk6 build --with github.com/mostafa/xk6-kafka
Error :
ERRO[0001] GoError: unknown module: k6/x/kafka
at reflect.methodValueCall (native)
at file:///home/ashish_22484/xk6_compiled/rtddkafka.js:55:47(22) hint="script exception"
OS : Amazon linux2
go version : go1.15.8 linux/amd64
& same on
OS : OSx Bigsur
go version :go1.14.15 darwin/amd64