Tests running fine locally but via circleCI I get uncaught promise on newPageerror

Hi @nicholaspshaw,

After discussing this with the team, we have some ideas.

  • The statsd extension uses an older version of k6, v0.45.1 specifically. This is because xk6 builds k6 with the highest version requested by extensions. So, the browser module’s API in k6 v0.45.1 doesn’t support the newContext API that you’re using.
  • Are you sure that you’re using the statsd extension locally while running your script?
  • It seems like you don’t need to use the statsd extension. Could you try removing it from your CircleCI config and retry?

Thanks. I hope this helps.