-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ServerlessError: No file matches include / exclude patterns when using Layers #240
Comments
Will be fixed with #243 |
After doing research as part of serverless/serverless#9873 I've realised that layers are generally not supported by this plugin so this issue should still be open. The general problem here lies in the fact that when packaging files for layers, |
@pgrzesik any workarounds you know of other than webpacking the ts files ourselves? |
Hello @abdullahmonoar - the only workaround I know is switching to |
I can also confirm it works by using serverless-jetpack |
Any timeframe for the issue create above ^ ? |
@alexandrubese PR's welcome! |
@raiseandfall great thanks for pointing. I've reached out to author of the PR to eventually update it so it's in sync with master |
So the above PR fixes part of the issue, but not fully. It seems this only helps if the thing you want to put in a layer is something that would be packaged by this plugin. However, if it's an external file that wouldn't be included in the TS build, this is still broken with the same error. |
We've also been hit by this problem, any update? |
It seems we have the PR: #267 |
I just ran into this and feel like it the commit needs to be reverted. I'm not sure exactly what case allows it to succeed. Is it checking for patterns: include because that is deprecated in serverless v3. |
@tachang any clue on how to tackle the problem in some way? |
same here |
Still seeing this error as of January 2024. Take the layer out of serverless.yml and the plugin works fine. Put the layer back in, and I get the same error reported above. Layer code in the YML looks like this:
I don't see anything in here that should be considered weird. We've written our own build system for using TS with serverless but I was really hoping to ditch that and use the plugin. We make extensive use of shared layers though, so this is kind of important. I'll admit I could be screwing something up, but at this point I feel like I've tried every reasonable config option (and again, it works fine with the functions - it's just the layer that breaks) Edit to add: there is nothing in |
Im experiencing No FIle Matches include / exclude patterns when using the new AWS Lambda layers
here is the last part of the logs
and this is my layers and plugins
The text was updated successfully, but these errors were encountered: