Open sam-barker opened 2 months ago
@bernardobridge @hassy any ideas or clues for this once? I really don't want to have to go back to JS + Webpack :(
I'll try to reproduce locally. Does winston
get loaded by your TypeScript code directly, or indirectly via another dependency?
I'll try to reproduce locally. Does
winston
get loaded by your TypeScript code directly, or indirectly via another dependency?
Hey @hassy it's via our TypeScript code, we import it directly as a node module.
It moans about many others as well that we include as a node module, but for simplicities sake I just mentioned winston in the bug
@hassy this is also happening with plain JS as well
@hassy it looks like the node_modules zip created by the leader is completely empty
@sam-barker We'll need to look at the worker logs in CloudWatch to see what's happening. node_modules
zip being empty means something is going wrong with the installation of dependencies. (I've tried reproducing with a simple test that uses custom TypeScript code with winston
as well and that works as expected.)
You can find a worker's CloudWatch log either in the AWS Console, via Elastic Container Service -> Clusters -> your cluster -> Tasks -> a running/stopped Artillery task -> Logs. Or if you're using Artillery Cloud, there will be a link directly to CloudWatch logs under Logs -> Worker logs:
Feel free to email me on hveldstra@artillery.io with anything you find if there's anything potentially sensitive in there.
Version info:
Running this command:
I expected to see this happen:
Test ran successfully
Instead, this happened:
worker error, id: 2 Error: Cannot find module 'winston'
Even though I have this in the package json, and I have specified the package json in the artillery arguments.
If I remove the bundling config
Then it just moans about marking the module as external, so it's an endless cycle.
Files being used: