serverless-webpack 5.5.0 attempts to run Webpack on container images which are not JavaScript
See original GitHub issueThis is a Bug Report
Description
For bug reports:
- What went wrong?
serverless-webpack is stopping me from deploying lambda containers as part of my service that are not
- What did you expect should have happened?
it should not have touched them as they’re not relevant to webpack
- What was the config you used?
N/A
I assume this is related to https://github.com/serverless-heaven/serverless-webpack/pull/723, which I can see the sense in - however, I can’t see a way to say “this isn’t a container image that Webpack cares about” and hence ignore that lambda in the service definition. Ideally there’d be an option to opt in/out of either Webpack’s involvement in particular functions, or container functions as a whole as not all container functions are guaranteed to be part of the service.
Additional Data
$ /Users/chris/Code/report-support/node_modules/.bin/serverless deploy -v --stage dev
Serverless: Using configuration:
{
"webpackConfig": "api/webpack.config.js",
"includeModules": {
"forceInclude": [
"pg"
]
},
"packager": "yarn",
"keepOutputDirectory": true,
"packagerOptions": {},
"concurrency": 12
}
Serverless Error ----------------------------------------
No matching handler found for 'apollo' in 'XXX'. Check your service definition.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
Operating System: darwin
Node Version: 14.16.1
Framework Version: 2.41.1 (local)
Plugin Version: 4.6.0
SDK Version: 4.2.2
Components Version: 3.9.2
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Unable to deploy mixed language Serverless environments ...
When attempting to run a deploy you get the following error: ENOENT: no ... 5.5.0 attempts to run Webpack on container images which...
Read more >How to use Serverless with Webpack and Docker
When dealing with Serverless, we write a so-called lambda function — a small (or not that small sometimes) piece of code which is...
Read more >Serverless Webpack Build in Nodejs Docker Container Fails ...
My Serverless (sls) application fails to build inside a Docker container due to type errors (TS2322) during the webpack build process.
Read more >serverless-bundle - npm Package Health Analysis - Snyk
An extension of the serverless-webpack plugin that bundles your ES6 + TypeScript Node.js Lambda functions. For more information about how to use this...
Read more >elastic-coders - Bountysource
serverless -webpack 5.5.0 attempts to run Webpack on container images which are not JavaScript $ 0. Created 1 year ago in serverless-heaven/serverless-webpack ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
with apologies, it looks like I failed to change to the right branch - yes, that appears to be correct now
in the definition of the server function, I would assume it’s looking at the command of the lambda