Build: Deploys are failing with local plugin

Created on 27 May 2020  ·  14Comments  ·  Source: netlify/build

Since this morning we are not able to build our website because of a plugin issue.

12:57:16 PM: Error: This plugin is missing a "manifest.yml"

Except it's not!

Configuration

[build]
  command = "yarn build:gatsby"
  publish = "public"

[build.environment]
  NODE_VERSION = "12.14.1"
  YARN_VERSION = "1.21.1"
  YARN_FLAGS = "--pure-lockfile"

[context.deploy-preview]
  GATSBY_API_PUBLIC_URL = XXXX"


[context.storybook]
  command = "yarn build:gatsby && yarn build:storybook"
  publish = "storybook"

[[plugins]]
  package = "netlify-plugin-gatsby-cache"

[[plugins]]
  package = "./plugins/netlify-plugin-auth0-patch-urls"

We're using the UI to build.

Deploy logs

Failed deploy :
https://app.netlify.com/sites/mg-app/deploys/5ece4731ea85d31e288c306d

bug

Most helpful comment

Ongoing PR to fix this bug at https://github.com/netlify/build/pull/1377

All 14 comments

I installed netlify-cli 2.52 (coming from 2.48) and I'm able to reproduce the bug locally

Hi @romainbessugesmeusy,

Thanks for reporting this.

Could you please share a tree view of your repository files (unless the repository is public, in which case a link would work too)? Thanks!

Sorry the repo is closed source :( But it was like that:

/src
/plugins
       /netlify-plugin-auth0-patch-urls
                     /manifest.yml
                     /index.js
/netlify.toml

Reverting to netlify 2.51.0 works, locally.
Can we configure Netlify build/deployment to use a specific netlify-cli rather than the newest?
In the short term....

@moop-moop, which version of @netlify/build is printed in your terminal when running netlify build with the Netlify CLI?

I have same issue. Building locally using @netlify/build 0.4.47

edit: just updated to latest netlify cli. Problem persists with @netlify/build 1.0.8

@moop-moop, which version of @netlify/build is printed in your terminal when running netlify build with the Netlify CLI?

for me,
@netlify/build 1.0.5 is problematic locally with my plugin relative path,
@netlify/build 0.4.48 was not problematic.

Ongoing PR to fix this bug at https://github.com/netlify/build/pull/1377

This is fixed now.

Having the same issue deploying on the netlify UI and using the CLI locally.

Netlify -v netlify-cli/2.69.1 wsl-x64 node-v10.19.0

 Error message
  The plugin "./tools/netlify/stop-build" is missing a "manifest.yml"

netlify.toml

[[plugins]]
package = "./tools/netlify/stop-build"

Project Structure

root
-- tools
---- netlify
------ stop-build
--------- manifest.yaml
--------- index.js
netlify.toml

index.js

module.exports = {
  onInit: ({  }) => {
    console.log("Hello World From Plugin");
  }
};

manifest.yaml

#prettier ignore
name: netlify-stop-build

Hi there,
Does renaming manifest.yaml to manifest.yml fix this?

@ehmicky
It did indeed work changing the file extension to .yml, thank you. Quite a bit of the documentation out in the wild shows the .yaml extension. Should I still submit an issue?

One more thing upon changing the file's extension led me to discovering onInit hook was replaced by onPreBuild. Is that correct the two are equivalent, or is there a better choice?

Thank you for your time.

Yes, onInit was replaced to onPreBuild, and the later one should work the same :+1:

An issue for manifest.yaml could be a good place to start, thanks!

Was this page helpful?
0 / 5 - 0 ratings