Code Monkey home page Code Monkey logo

Comments (7)

stuartmccoll avatar stuartmccoll commented on May 29, 2024 1

Hi ๐Ÿ‘‹.

I think that this is likely related to the latest release of the transitive dependency simple-git - there's a change in the most recent release that would appear to be causing the issue.

from serverless.

jasanchezt avatar jasanchezt commented on May 29, 2024

I had the same error, thank you, using nodejs 14 works.

from serverless.

ppagan-ted avatar ppagan-ted commented on May 29, 2024

Hi, we're having the same issue when the automatic CI/CD tries to run.

Deploying locally works since that package is already installed, but as far as I can tell, whatever build host serverless.com uses for deploys does not have the 'events' package installed, so their own "serverless" node script cannot execute. My guess is that the dependency change @stuartmccoll mentioned caught serverless by surprise, and they haven't updated their build servers yet.

If my understanding of the situation correct? Is there a workaround, or do we just wait for serverless to fix the issue?

Build started at Fri Mar 29 2024 16:12:52 GMT+0000 (GMT)
> node --version
v14.15.5
> npm --version
6.14.11
> npx serverless --version
/usr/local/nvm/versions/node/v14.15.5/lib/node_modules/serverless/node_modules/essentials/index.js:21
		throw reason;
		^
Error: Cannot find module 'node:events'
Require stack:
- /usr/local/nvm/versions/node/v14.15.5/lib/node_modules/serverless/node_modules/simple-git/dist/cjs/index.js
- /usr/local/nvm/versions/node/v14.15.5/lib/node_modules/serverless/node_modules/@serverless/dashboard-plugin/lib/deployment/parse.js
...

from serverless.

garethmcc avatar garethmcc commented on May 29, 2024

Hi there folks. We upgraded the version of Node from 14 to 16 yesterday which should alleviate this issue. We attempted to upgrade higher but the Amazon images for the Python runtimes used in AWS Lambda have library dependency issues so we were limited there.

from serverless.

davidamcclain avatar davidamcclain commented on May 29, 2024

Resolved for me. Thanks.

from serverless.

garethmcc avatar garethmcc commented on May 29, 2024

Closing this issue as solved.

from serverless.

Bobby484 avatar Bobby484 commented on May 29, 2024

I am still seeing this issue in aws codebuild container. I have [email protected] and nodejs 12.20.0. It is very difficult for us to upgrade to nodejs 16. Is there any workaround on it? Tried downgrading simple-git 3.22.0 but no luck. Please help as it is very critical for us.

from serverless.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.