-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find module excluded from bundling even though package.json is set #3354
Comments
@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 |
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. 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 [email protected] 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:
The text was updated successfully, but these errors were encountered: