when i run script via ./k6 run test.js
in test.js we have to change import { chromium } from 'k6/x/browser';
i am getting ERRO[0000] could not initialize ‘…/load-site-test.js’: could not load JS test ‘file:///mnt/hgfs/nn-loadtest/load-site-test.js’: file:///mnt/hgfs/nn-loadtest/load-site-test.js: Line 31:7 Unexpected token function (and 3 more errors)
Without the latest flag, it would use the minimum version of k6 which is dictated by the extension that you are building with. With the latest flag, it works with the latest tagged version of k6.