mostafa/xk6-kafka

Webpack bundler xk6-kafka

hernanmateika-stuart opened this issue · 1 comments

Hi!
I was trying to setup a bundler (webpack) in order to be able to use node libs during test execution. Although the bundler is created correctly (I test it outside the test script and it works) when I want to execute the script with k6 I get this error trace. Maybe there is some incompatibility or some configuration that I am missing?

ERRO[0000] There were problems with the specified script configuration: - executor default: function 'default' not found in exports

UPDATE: I have tried to use webpack 4 and it is working as expected. This lib has some vulnerabilities and I would like to update to webpack 5, but it seems that doing the same with the new version is not working (still getting same error). Any idea?

@hernanmateika-stuart

Bundling NPM libraries for Node.js is a k6 problem, not an specific issue of this extension. I suggest you follow this guidelines and ask your questions here.