Ran a clean cache build on Netlify with @netlify/plugin-gatsby installed, and it seems to be getting a dependency error in the Functions building step:
7:30:38 PM: 5. Functions bundling
7:30:38 PM: ────────────────────────────────────────────────────────────────
7:30:38 PM:
7:30:38 PM: Packaging Functions from serverless-functions directory:
7:30:38 PM: - gatsby/gatsby.js
7:30:38 PM: - pgp-reform-feed/pgp-reform-feed.js
7:30:38 PM:
7:30:39 PM:
7:30:39 PM: ─────────────────────────────────────────────
7:30:39 PM: ────────────────────────────────────────────────────────────────
7:30:39 PM: Dependencies installation error
7:30:39 PM: ────────────────────────────────────────────────────────────────
7:30:39 PM:
7:30:39 PM: Error message
7:30:39 PM: A Netlify Function failed to require a local file.
7:30:39 PM: Please make sure the file exists and its path is correctly spelled.
7:30:39 PM:
7:30:39 PM: In file "/opt/build/repo/serverless-functions/gatsby/gatsby.js"
7:30:39 PM: Cannot find module '../../../.cache/functions/manifest.json' from '/opt/build/repo/serverless-functions/gatsby'
@indraneel Thanks for the report! I think I know what the issue is here. It looks like it's related to your custom functions directory. I'll check things and should have a fix.
Ran a clean cache build on Netlify with
@netlify/plugin-gatsby
installed, and it seems to be getting a dependency error in the Functions building step:Not sure I totally understand the purpose of the
template/
dir but it looks like this is where things break: https://github.com/netlify/netlify-plugin-gatsby/blob/main/plugin/src/templates/gatsby.js#L11 ?Steps to reproduce
This was a Netlify build so tough to provide exact steps but I ran
gatsby build
on my gatsby v3 site.The plugin seems to have added this to my .gitignore
this is my package.json
Expected behavior
Dependency should be found?
Environment
7:23:11 PM: Now using node v12.18.0 (npm v6.14.4)