I am using the k6/crypto module but on run I am suddenly getting an odd error:
WARN[0000] The moduleSpecifier "crypto" 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.
I am importing and using it pretty normally:
import crypto from 'k6/crypto';
getUUID(): string {
const uuid = crypto.md5(crypto.randomBytes(42), 'hex');
return uuid;
}
I can’t find where this is coming from - I’m using webpack with typescript and I think perhaps that is where my issue is coming from, I’m new to webpack so it could be how I am loading it?
externals: /^(k6|https?\:\/\/)(\/.*)?/,
I’m kind of lost at this point but any help would be greatly appreciated!