-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
serverless-offline 9.1.0 Breaking change #60
Comments
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 |
Thanks @rubenkaiser |
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. |
🙏 Thank you @rubenkaiser! |
@rubenkaiser it was unbeknownst to me that other plugins were reaching into the lambda functionality of that said, I'm a bit surprised that instead of working around the package I think the right thing to do would be instead of removing package |
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. |
PR for exporting the lambda code in a named export: dherault/serverless-offline#1552 |
[email protected] was just released and can be used with serverless-offline > 10.0.0 |
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? |
@davidgarvie considering the amount of downloads nowadays I will start using the released as well. Good suggestion, thanks. |
Overview
I can't get serverless-offline-eventBridge to work with the latest version of serverless-offline.
When I start my dev server I get the following error
[ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './dist/lambda' is not defined by "exports" in /Users/me/my-api/node_modules/serverless-offline/package.json
When I remove the package, everything bundles fine and my app runs. I think it may be failing due to the latest node import changes.
Hope to get some help 🙏
Setup
node v16.15.0
Trace
The text was updated successfully, but these errors were encountered: