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.

0.2.19 -> 0.2.20 breaks serverless offline start

See original GitHub issue

Issue 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:open
  • Created 5 years ago
  • Comments:24

github_iconTop GitHub Comments

10reactions
sohailalam2commented, Jan 8, 2019

For those who are stuck with this issue, the following solution worked for me

npm uninstall serverless-dynamodb-local
sls dynamodb uninstall

npm install serverless-dynamodb-local@0.2.30
sls dynamodb install
9reactions
paqmancommented, Aug 31, 2017

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 running yarn add for example)

Read more comments on GitHub >

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

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