question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

serverless-webpack 5.5.0 attempts to run Webpack on container images which are not JavaScript

See original GitHub issue

This 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:closed
  • Created 2 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
cnorthwoodcommented, Jun 14, 2021

with apologies, it looks like I failed to change to the right branch - yes, that appears to be correct now

1reaction
cnorthwoodcommented, Jun 10, 2021

in the definition of the server function, I would assume it’s looking at the command of the lambda

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found