I am a little confused regarding the use of Typescript with k6.
I have custom ts modules that help me with data generation and I would like to import these within the k6 test. However, when doing so I get Syntax errors with the .ts files.
WARN A url was resolved but it didn't have scheme. This will be deprecated in the future and all remote modules will need to explicitly use `https` as scheme url=//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.0/underscore-min.js ERRO SyntaxError: file:///Users/vaishnavi/k6-typescript-framework/modules/server/models/sg/sgModel.ts: Unexpected token, expected , (19:53)
I need help in understanding whether this is related to the lack of support for typescript in k6.
I tried making use of https://github.com/go-automate/k6-typescript-framework, but on bundling with webpack and running my test I again see numerous errors.