Patch netlify function dependencies #49
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When you fork the repo and go a clean deploy on netlify, we get an error that the Netlify function cannot find the dependencies
HackerspaceMumbai#30
This will lead to an issue that is open for more than a year on Netlify community
https://community.netlify.com/t/how-to-include-dependencies-in-netlify-lambda-functions/2323/18
Its an inconsistent error, for some site it does not error out while for others it will.
It looks like the best compromise is to have the Netlify function dependencies be defined the in the root xpackage.json since node.js traverses up the folder structure to find the node_modules directory with the requisite dependencies