0.2.19 -> 0.2.20 breaks serverless offline start
See original GitHub issueIssue Description
Upgrading from 0.2.19 to 0.2.20 and any later release breaks the command
serverless offline start
serverless offline
still works.
I’m using serverless-webpack
plugins:
- serverless-webpack
- serverless-dynamodb-local
- serverless-offline
and versions are: sls-offline: 3.15.3 serverless-webpack: 2.2.2 and I’ve tried other versions with same result. serverless: 1.20.2
I don’t see the release tags in this repo unfortunately. Also, the error is a bit unspecific:
SLS_DEBUG=* node_modules/.bin/serverless offline start
Serverless: WARNING: Plugin ServerlessWebpack uses deprecated hook before:deploy:createDeploymentArtifacts,
use package:createDeploymentArtifacts hook instead
Serverless: WARNING: Plugin ServerlessWebpack uses deprecated hook after:deploy:createDeploymentArtifacts,
use package:createDeploymentArtifacts hook instead
Serverless: Bundling with Webpack...
Time: 2423ms
Asset Size Chunks Chunk Names
handler.js 222 kB 0 [emitted] main
Serverless: Watching with Webpack...
events.js:160
throw er; // Unhandled 'error' event
^
Error: spawn java ENOENT
at exports._errnoException (util.js:1018:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:367:16)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)
Issue Analytics
- State:
- Created 6 years ago
- Comments:24
Top Results From Across the Web
0.2.20 breaks serverless offline start · Issue #127 - GitHub
Upgrading from 0.2.19 to 0.2.20 and any later release breaks the command serverless offline start serverless offline still works.
Read more >serverless-offline/community - Gitter
I run "SLS_DEBUG=* sls offline start". It run in debug mode but any changes made to any of the handler files, it does...
Read more >serverless-offline - npm
Serverless Offline. This Serverless plugin emulates AWS λ and API Gateway on your local machine to speed up your development cycles.
Read more >Serverless plugin "serverless-offline" not found. Make sure it's ...
Run "serverless plugin install -n serverless-offline" to install it. [nodemon] app crashed - waiting for file changes before starting.
Read more >serverless-offline - Bountysource
Function cannot start puppeteer when invoked via local http server. Working properly with serverless-offline 5.x. Breaking with version 6.x (6.0.0-alpha.67) ...
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
For those who are stuck with this issue, the following solution worked for me
Try running
serverless dynamodb install
. Actually, the plugins seems to “lost” the reference to the dynamodb-local executable after any change to the package.json (after runningyarn add
for example)