Skip to content

Error: This plugin does not work locally, please deploy to a branch to test it. #811

Description

@benjaminstary

Hi, I try to run this plugin on my gitlab pipeline with netlify-cli, but this error is showing up. I've installed @algolia/netlify-plugin-crawler@1.0.12 into my devDependencies because of problems with 1.0.14 related to this #712

$ sdk_run netlify deploy --build --prod
## /usr/bin/buildah run -t --add-history sdk-249368 -- netlify deploy --build --prod
(node:1) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use `node --trace-warnings ...` to show where the warning was created)
​
┌─────────────────────────────┐
│        Netlify Build        │
└─────────────────────────────┘
​
❯ Version
  @netlify/build 4.1.3
​
❯ Flags
  mode: cli
​
❯ Current directory
  /data/builds/dovera/mojezdravie/design-system/.release
​
❯ Config file
  /data/builds/dovera/mojezdravie/design-system/.release/netlify.toml
​
❯ Context
  production
​
❯ Loading plugins
   - @algolia/netlify-plugin-crawler@1.0.12 from netlify.toml and package.json
​
┌───────────────────────────────────────────────────────────┐
│ 1. onSuccess command from @algolia/netlify-plugin-crawler │
└───────────────────────────────────────────────────────────┘
​
Algolia Netlify plugin started
​
┌─────────────────────────────────────────────────┐
│ Plugin "@algolia/netlify-plugin-crawler" failed │
└─────────────────────────────────────────────────┘
​
  Error message
  Error: This plugin does not work locally, please deploy to a branch to test it.
​
  Plugin details
  Package:        @algolia/netlify-plugin-crawler
  Version:        1.0.12
  Repository:     git+https://github.com/algolia/algoliasearch-netlify.git
  npm link:       https://www.npmjs.com/package/@algolia/netlify-plugin-crawler
  Report issues:  https://github.com/algolia/algoliasearch-netlify/issues
​
  Error location
  In "onSuccess" event in "@algolia/netlify-plugin-crawler" from netlify.toml and package.json
      at onSuccess (/node_modules/@algolia/netlify-plugin-crawler/dist/index.js:55:28)
​
  Resolved config
  plugins:
    - inputs:
        renderJavaScript: true
      origin: config
      package: '@algolia/netlify-plugin-crawler'
​
┌─────────────────────────────┐
│   Netlify Build Complete    │
└─────────────────────────────┘
​
(Netlify Build completed in 460ms)
Please provide a publish directory (e.g. "public" or "dist" or "."):

netlify.toml

[[plugins]]
package = "@algolia/netlify-plugin-crawler"
  [plugins.inputs]
  branches = ['master']
  renderJavaScript = true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions