Web-dashboard option was not working for me

$ k6 run --out 'web-dashboard' script.js

          /\      |‾‾| /‾‾/   /‾‾/
     /\  /  \     |  |/  /   /  /
    /  \/    \    |     (   /   ‾‾\
   /          \   |  |\  \ |  (‾)  |
  / __________ \  |__| \__\ \_____/ .io

WARN[0000] error getting terminal size                   error="The handle is invalid."

Init      [--------------------------------------]
default   [--------------------------------------]
ERRO[0000] invalid output type 'web-dashboard', available types are: cloud, csv, experimental-prometheus-rw, influxdb, json, statsd

Even the environmental variable option is also not worked for me

 K6_WEB_DASHBOARD=true k6 run script.js

          /\      |‾‾| /‾‾/   /‾‾/
     /\  /  \     |  |/  /   /  /
    /  \/    \    |     (   /   ‾‾\
   /          \   |  |\  \ |  (‾)  |
  / __________ \  |__| \__\ \_____/ .io

  execution: local
     script: script.js
     output: -

  scenarios: (100.00%) 1 scenario, 10 max VUs, 50s max duration (incl. graceful stop):
           * default: 10 looping VUs for 20s (gracefulStop: 30s)

WARN[0000] error getting terminal size                   error="The handle is invalid."

     data_received...: 0 B 0 B/s
     data_sent.......: 0 B 0 B/s
     vus.............: 10  min=10 max=10
     vus_max.........: 10  min=10 max=10

Hi @aravindpenumaka, welcome to the community forum!

Please check, that you are using k6 with version at least v0.49.0. web-dashboard is available from that version. You can check the version with k6 version command.