[Typescript Playwright support] ES Projects need explicitly call generated files .cjs
#3296
shitchcock
started this conversation in
Artillery
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When running Artillery + Playwright + Typescript, it creates an intermediary compiled
.js
file using CommonJS of the scenario you are running in adist/
folder.Because Artillery is expecting commonjs but the project indicates these files are ES, Artillery fails with
This could be mitigated by adding an option to config
isEsmProject
. WhenisEsmProject
is true, the extension here would become.cjs
instead of.js
Beta Was this translation helpful? Give feedback.
All reactions