Launching serverless-offline fails with serverless-webpack@2.2.0
See original GitHub issueThis 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:
- Created 6 years ago
- Comments:18 (12 by maintainers)
Top 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 >
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
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.
@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.