Faker in K6 by bundling with webpack

I am trying to use faker by bundling with webpack but I am not able to use it. I am getting the following errors “No Schema”. more details in the image below.
I have refer this link Performance Testing with Generated Data using k6 and Faker - DEV Community

Hi @Palman,

As far I can see you probably just run your original file instead of the one webpack created for you, which would be found in dist/test.main.js or something similar.

I just followed the instructions with the provided repo and it worked perfectly although I did just run yarn pretest && yarn test instead of running k6 directly.

1 Like

Thank you for the quick response.

it works.