Hey @peter-wd-1,
TL;DR if you just want the working site and repo
- site: https://naughty-almeida-49c564.netlify.app/
- repo: GitHub - kaganjd/netlify-lambda-apollo-federation: This project sets up boilerplate for `netlify-lambda` functions using `apollo/federation`
- commit history so you can look at what I changed in each step: Commits · kaganjd/netlify-lambda-apollo-federation · GitHub
- this uses the built-in “zip and ship” functionality as opposed to netlify-lambda, but you still get to break out functions into their own folders with their own dependencies
The longer story
There are a couple different issues happening at once and the best resource I can point you to is this extensive conversation about different ways you can build functions (zip and ship, manually zip, netlify-lambda):
I’d really recommend reviewing that if you want to get this working with netlify-lambda. I believe the core of the issue is that your function dependencies are not being automatically bundled with the netlify-lambda build
command; you will need to install the function dependencies, one command at a time or with a script.
Hope you find this helpful! Let us know if you have any other questions.