Coder Social home page Coder Social logo

Comments (9)

bakasmarius avatar bakasmarius commented on June 24, 2024 6

serverless-offline is now version 6.1.0 - any plans on supporting v6?
I'm stuck with v6.0.0-alpha.8, any newer version throws this error:
Error: Cannot find module 'serverless-offline/src/functionHelper'

This commit might be worth looking into: dherault/serverless-offline@85e0c2c

from serverless-plugins.

esetnik avatar esetnik commented on June 24, 2024 4

@christophersbarrett I have a workaround that's working and I pushed #125. Please check it out and let me know if it's working for you.

To test it in your project the easiest way is to grab the source code and place it into your local plugins folder e.g.:

 - ./plugins/serverless-offline-sqs.js

from serverless-plugins.

oguimbal avatar oguimbal commented on June 24, 2024 2

+1

I tried to investigate... but it turns out that this is not an easy fix without any prior knowledge. serverless-offline has changed quite a bit since 6.0.0-alpha.8.

Some details: Several plugins of this repo (I use serverless-offline-sqs and serverless-offline-dynamodb-streams) are using nasty internal functions of serverless-offline to trigger lambda processing, but these functions do not exist anymore. The core model of serverles-offline has changed dramatically. The commit referenced by @bakasmarius was just moving the incriminated functions, but they have now disapeared completely.

Wokaround (kind of): Use [email protected] :/
nb: This version required (for me) a nasty fix in node_modules\serverless-offline-dynamodb-streams\src\index.js - I had to invert functionName and __function arguments, at line 95 & 96.

from serverless-plugins.

thetumper avatar thetumper commented on June 24, 2024

npm warns of the version requirement during install:

npm WARN [email protected] requires a peer of serverless-offline@^5.12.1 but none is installed. You must install peer dependencies yourself.

from serverless-plugins.

Deliverart avatar Deliverart commented on June 24, 2024

Any news on the @bakasmarius issue?
I have the same problem!

from serverless-plugins.

christophersbarrett avatar christophersbarrett commented on June 24, 2024

Has anyone brought this package up to date locally that they could potentially create a PR for? :-D :-D

from serverless-plugins.

bakasmarius avatar bakasmarius commented on June 24, 2024

@esetnik thanks!! I'll try to find some time this week to check your PR locally, no promises though 😬

from serverless-plugins.

bakasmarius avatar bakasmarius commented on June 24, 2024

@esetnik I couldn't get it to work, left a comment in your PR

from serverless-plugins.

AdrieanKhisbe avatar AdrieanKhisbe commented on June 24, 2024

Handled by #129, hence closing

from serverless-plugins.

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.