-
Notifications
You must be signed in to change notification settings - Fork 417
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
invoke doesn't work if the file isn't in the project root (for multiple entries) #66
Comments
You can do something like
This is what we are doing at the moment. |
Thanks @andymac4182, that worked like a charm. 👍 Two questions now:
Thanks again! |
neat. I'm seeing various issues like this one that would greatly help if added somehow in the readme and/or examples. I believe we are getting close to a definitive workflow for this plugin. In this case I think @andymac4182 solution is the way to go as resolving handlers as if they were folders to then map the result inside a bundled js would become quite cumbersome without a huge gain imo. thoughts? |
Specifying |
You can test |
You can try the v3 release candidate, see #187 |
@brunobelotti @andymac4182 Did you check if the V3 RC solves your problems? I'll tend to close this task, as there have not been any responses recently. |
Closing the issue - if the issue still persists, feel free to re-open it or create a new one for the most current version. |
I was having problems invoking my functions after using the plugin, so I took further steps to better isolate the problem.
I cloned the repository and tried the "multiple-entries" example, everything works fine.
I then moved one of the functions inside a folder "functions", and updated serverless.yaml accordingly:
Same for webpack.config.js:
After deployment, if I
sls invoke local -f first
everything works, if Isls invoke -f first
I get an error:With the second function, in the project root, everything works as expected.
Also, if I disable the plugin, everything work as expected.
Am I missing something or is there a bug?
Thank you! :)
The text was updated successfully, but these errors were encountered: