Comments (10)
[email protected] was just released and can be used with serverless-offline > 10.0.0
from serverless-offline-eventbridge.
Unfortunately the new version of Serverless-offline does not export the required lambda files. There are several serverless-offline packages that are not working anymore. I'm keeping an eye on the following thread: CoorpAcademy/serverless-plugins#217
from serverless-offline-eventbridge.
@davidgarvie considering the amount of downloads nowadays I will start using the released as well. Good suggestion, thanks.
from serverless-offline-eventbridge.
Thanks @rubenkaiser
from serverless-offline-eventbridge.
I've just released a beta version 2.0.0-beta.0 in which I've put a bit of a hack to remove the serverless-offline export automatically. At this point serverless-offline may crash the first time but running it again should make it work.
For now this may fix your local env but I'm hoping they will remove the export themselves to solve this issue for all other plugins as well.
from serverless-offline-eventbridge.
🙏 Thank you @rubenkaiser!
from serverless-offline-eventbridge.
@rubenkaiser it was unbeknownst to me that other plugins were reaching into the lambda functionality of serverless-offline
but it's the perfect thing to do. I was always hoping this would happen, albeit currently lacking documentation.
that said, I'm a bit surprised that instead of working around the package exports
"problem", you wouldn't just file an issue with serverless-offline
. we could have resolved this fairly quickly and early on 😉
I think the right thing to do would be instead of removing package exports
altogether we would be either adding an additional export path to exports
, or we would add a named export to index.js
(which might be better). that way, stuff can be refactored inside the package, as long as the contract (which also officially doesn't exist [yet]) does not change. we would just need to define a contract and document it.
from serverless-offline-eventbridge.
You're right @dnalborczyk . I thought this issue was enough but now I see I never commented in your project. My bad. I think exporting an array of files is possible, however I saw that sqs for example is importing several things.
from serverless-offline-eventbridge.
PR for exporting the lambda code in a named export: dherault/serverless-offline#1552
from serverless-offline-eventbridge.
Thanks for the release @rubenkaiser, great work :) Have you considered tags / releases on github so the community has an easy way to get notified of new releases?
from serverless-offline-eventbridge.
Related Issues (20)
- Event Pattern Matching HOT 5
- context.succeed is not a function HOT 1
- `context.succeed` is not a function HOT 1
- Using intrinsic Cloud Formation functions (!GetAtt and !ImportValue) when defining the event bus name HOT 1
- Serverless deploy freezes on moveArtifactsToPackage with 1.6.0 HOT 13
- PayloadTooLargeError: request entity too large HOT 3
- Request: Update serverless-offline peer dependency HOT 1
- Missing support for schedules HOT 9
- Retry attempts break the execution HOT 2
- Cannot find module 'serverless-offline/dist/lambda' HOT 1
- Unclear error message HOT 2
- Setting up serverless-offline-eventBridge HOT 3
- cron(*/1 * * * ? *) is worked but cron(0/1 * * * ? *) is not worked HOT 2
- Installation errors with serverless-offline ^11 HOT 1
- eventBridge enabled flag is ignored HOT 7
- equals-ignore-case filter not found HOT 2
- Query: Does this package have support for the event bridge scheduler HOT 2
- Event Pattern doesn't support array of objects. HOT 2
- Stepfunction events HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-offline-eventbridge.