serverless: v0.5 - Can not deploy third party node module like mysql
i am trying to use mysql module in code
mysql module is located in parent_folder_of_all_lambda_function/node_modules folder
i am using that module in parent_folder_of_all_lambda_function/lib/database.js
if we want to deploy folder/files which will use in all lambda function we need to change handler,i know this and i have changed handler value like "handler": "function_name(folder_name)/handler.handler",
But i can not deploy node_modules folder i got Cannot find module 'mysql' error
in old version 0.4 i was able to check which files have been deployed in meta folder but my another question is how to check deployed files in 0.5
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 18 (6 by maintainers)
@eahefnawy issue is related optimizer plugin not serverless i have checked that
without optimizer plugin it is working fine@eahefnawy need to check,will check and let you know,as per your understanding is this serverless bug or optimizer bug or aws bug or my bug 😃