"Fvr.isPlainObject is not a function" during constructor #519
Labels
Type: Support
Any questions, information, or general needs around the SDK or GitHub APIs
Projects
What happened?
Using Octokit to handle GitHub webhook events, running in AWS Lambda. During the Octokit constructor, a type error is thrown from what I️ have gathered is a missing dependency "is-plain-object".
Node Version: 16.14.2 + TypeScript 4.7
Bundling using Esbuild 0.14.54
Not much to show here. It happens on import for me. My import statements:
But I️ don't even get into my webhook route handler, it crashes the runtime as soon as it loads.
What did you expect to happen?
For the dependency to be present and allow the package to load.
What the problem might be
Not sure, it seems that
is-plain-object
is marked as a peer dep in most Octokit libraries. I️ installed it myself as well, to no avail.The text was updated successfully, but these errors were encountered: