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.

Launching serverless-offline fails with serverless-webpack@2.2.0

See original GitHub issue

This is a Bug Report

Description

Using config based on the example, after upgrading to serverless-webpack@2.2.0, serverless-offline fails to start with the following error:

Serverless Error ---------------------------------------

  No matching handler found for 'handler'. Check your service definition.

The same config works fine with serverless-webpack@2.1.0.

Minimal(ish) repro: https://github.com/haines/serverless-webpack-issue

Additional Data

  • Serverless-Webpack Version you’re using: 2.2.0
  • Webpack version you’re using: 3.4.1
  • Serverless Framework Version you’re using: 1.18.0
  • Operating System: Mac OS X 10.12.5
  • Stack Trace (if available): N/A

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:18 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
HyperBraincommented, Jul 28, 2017

I fixed the example. The handler definition must include the path so that the Serverless framework and the plugin knows the location of the handler.

functions:
  first:
    handler: src/handler.hello
0reactions
HyperBraincommented, Aug 16, 2017

@ringods I did a PR to the repo (https://github.com/ktonon/elm-serverless-demo/pull/2) which makes it work. It is your decision to keep sls-webpack v3 in or use 2.2.0. Both should work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

serverless-webpack-fixed - npm package - Snyk
The plugin integrates very well with serverless-offline to simulate AWS Lambda and AWS API Gateway locally. Add the plugins to your serverless.
Read more >
Esbuild - Serverless Framework: Plugins
Run serverless offline start . Invoke Local. This plugin supports the Serverless Invoke Local functionality and will automatically compile the selected function ...
Read more >
serverless-offline | Yarn - Package Manager
This Serverless plugin emulates AWS λ and API Gateway on your local machine to speed up your development cycles. To do so, it...
Read more >
error: "Serverless-offline: route not found." when trying to run ...
when trying to run Angular 9 Universal with serverless-offline ... "ng run BRMed:server:serverless && webpack --config ...
Read more >
serverless-webpack/CHANGELOG.md - UNPKG
The CDN for serverless-webpack. ... 176, * 2.2.0 ... 189, * Support `serverless offline start` invocation [#131][link-131].
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