Skip to content

Invalid exports from gatsby-transformer-sharp #1367

@whmountains

Description

@whmountains

I get this error when I set up gatsby-transformer-sharp to my gatsby-config.js:

Your plugins must export known APIs from their gatsby-node.js.
The following exports aren't APIs. Perhaps you made a typo or
your plugin is outdated?

See https://www.gatsbyjs.org/docs/node-apis/ for the list of Gatsby Node APIs

 — The plugin "[email protected]" is exporting a variable named "onNodeCreate" which isn't an API. Perhaps you meant to export "onCreateNode"?

Is the plugin just out of date?

MacOS 10.13 beta
Node v8.1.3
Gatsby 1.0.0-beta.7

My gatsby-config.js

module.exports = {
  siteMetadata: {
    title: `Some Title`,
  },
  plugins: [
    `gatsby-transformer-sharp`
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions