Deploy failed due to an error in @netlify/plugin-functions-core plugin

Ah – well that’s what happens when I don’t read the item properly (or I do at like 4am) :slight_smile:

But, I did want to try out that scenario and turn it into a Cookbook, so this was a good way of making be try it out.

Two things:

  1. Can you share the repo if public – or at least the code for the sdl and services and helpers?

  2. You can test a local netlify build locally

Just

npm install netlify-cli -g

setup authorization etc and then

  • netlify link to connect to your site

  • netlify build

Note: not all netlify cli command work with RedwoodJS … for example, the netlify dev does not (yet).

It will then build just like it will when deploying … including the plugins, etc.

  βœ” Building "api"...
  βœ” Building "web"...
✨  Done in 15.44s.

(build.command completed in 15.6s)

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ 2. onPostBuild command from @netlify/plugin-functions-core β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Packaging Functions from api/dist/functions directory:
 - graphql.js
 - hello.js

(@netlify/plugin-functions-core onPostBuild completed in 22.1s)

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Netlify Build Complete    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Which is a nice way to test w/out deploying.

If you’re able to share some of that code, maybe we can sort things out.

Cheers!

2 Likes