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
"Packaging: No files found" in deploy. #891
Comments
What version of serverless-webpack are you using? Could you update line 62 of -const error = new this.serverless.classes.Error('Packaging: No files found');
+const error = new this.serverless.classes.Error('Packaging: No files found: ' + directory); Try again and show me the new error message? |
@j0k3r
|
@j0k3r I added directory output and get result.
|
Checking your |
@j0k3r Yeah I don't want to deploy functions. |
@j0k3r At the moment I am using serverless-webpack for local testing. |
I've never done that. |
Problem:
I just ran into this issue myself and can confirm this is correct. I created a serverless project with I only needed to create a S3 resource so no functions were needed and I removed them from my config. Upon running Here is an example repo I made to reproduce the error. Solution:I took your advice and just commented out the TODOs:Ultimately, this issue was caused by the I'm not for sure where or what the fix should be if any to prevent others from going on the hour goose-hunt I did lol. My recommended fix would be that the generated |
I develop appsync by using serverless framework.
I could deploy api successfully.
Next I wanted to test it locally, so I introduced
serverless-webpack
,serverless-appsync-simulator
,serverless-dynamodb-local
andserverless-offline
.I could test in local but couldn't deploy with the following error.
I comment outed
serverless-webpack
inserverless.yml
. I could deploy successfully again.What should I do ?
error-log
serverless.yml
package.json
webpack.config.js
My environment
The text was updated successfully, but these errors were encountered: