-
Notifications
You must be signed in to change notification settings - Fork 160
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
Getting "Invalid Table" error #34
Comments
Yes, this is caused by webpack. I'm going to flag this as a bug, although it technically isn't, but clearly needs to be addressed so that it works with webpack out of the box. Thanks for noticing. |
Confirmed this works 🎉 |
@brettstack, there are a few other places that use the |
@jeremydaly this is the same minification issue right? If so, a temporary fix is to disable minification in your webpack config:
|
@aldebout, I'd rather not require that, but yes, should work for temporary fixes. There are other ways to verify the correct instances are passed, so I'll hunt for these and add fixes. |
Similar to jeremydaly@71f55db and the related issue jeremydaly#34. I'm getting "Invalid Entity" under certain minification conditions where `instanceof` fails.
This works locally, but when I deploy to Lambda, the
table.constructor.name
is empty, causing dynamodb-toolbox to throw https://github.com/jeremydaly/dynamodb-toolbox/blob/v0.2/classes/Entity.js#L46-L69.I'm using serverless-webpack which may have something to do with it?
The text was updated successfully, but these errors were encountered: