-
Notifications
You must be signed in to change notification settings - Fork 488
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 when running test on Fargate #2751
Comments
Very odd, looks like the dependencies are not being discovered as expected. Will try to repro here! |
Did some tests again this morning and I believe this has to do with the fact that the yamls are stored in subfolders. If I move the yml and js file to the root, I can see all files being bundled.
And everything goes as expected. Note I had another issue when installing packages (error 401) because my |
Version info:
Running this command:
I expected to see this happen:
I expect the test to be ran successfully.
Instead, this happened:
But the console says:
And in the CloudWatch logs I can see the following error:
Files being used:
Note that
bcrypt
package is installed (in both package.json, package-lock.json and node_modules)It is also used (via require keyword) in the function.js file that is referenced in the
processor
field of the login.yml fileThe text was updated successfully, but these errors were encountered: