Hello everyone, currently I am deleting everything node related from my project to get rid of webpack bundler in order to run k6 without the need of it, keeping a simple execution. I was using .env file for environment variables using process.env to export them. Now I am using simple env.js file exporting every variable and importing the file with relative path as k6/modules documentation suggest. Here you have whole view:
when I execute k6 run tests/groups/users.js I get the error message >>
WARN The moduleSpecifier "tests/Common.js" has no scheme but we will try to resolve it as remote module. This will be deprecated in the future and all remote modules will need to explicitly use "https" as scheme. ERRO Module specifier "tests/Common.js" was tried to be loaded as remote module by prepending "https://" to it, which didn't work. If you are trying to import a nodejs module, this is not supported as k6 is _not_ nodejs based. Please read https://k6.io/docs/using-k6/modules for more information. Remote resolution error: "Get "https://tests/Common.js": dial tcp: lookup tests: no such host" at go.k6.io/k6/js.(*InitContext).Require-fm (native) at file:///Users/nil.pascual/Developer/load-performance/tests/groups/users.js:2:0(26) hint="script exception"
I know this is related to some kind of modules errors but now I am doing everything as k6 documentation says. What am I doing wrong? Thank you so much!