You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker run --rm -i -e K6_COMPATIBILITY_MODE=experimental_enhanced grafana/k6 run --verbose - <script.ts
Looking at the source, I think it's because it looks at the filename suffix and because it is piped into the docker container, i am assuming there is no filename?
See
Brief summary
K6_COMPATIBILITY_MODE=experimental_enhanced doesn't seem to work when running k6 through docker
Did not see any docs with regards to not working via docker at https://grafana.com/docs/k6/latest/using-k6/javascript-typescript-compatibility-mode/
k6 version
0.56.0
OS
macOS 12
Docker version and image (if applicable)
Docker version 27.4.0, build bde2b89
Steps to reproduce the problem
docker run --rm -i -e K6_COMPATIBILITY_MODE=experimental_enhanced grafana/k6 run --verbose - <script.ts
Looking at the source, I think it's because it looks at the filename suffix and because it is piped into the docker container, i am assuming there is no filename?
See
k6/js/compiler/compiler.go
Line 122 in 540b433
Expected behaviour
To strip the types with esbuild and run the script
OR if not possible update the docs to mention this
Actual behaviour
Outputs
The text was updated successfully, but these errors were encountered: