Gatsby: [gatsby-plugin-typography] Getting a error after adding gatsby-plugin-typography config

Created on 27 Sep 2017  Â·  4Comments  Â·  Source: gatsbyjs/gatsby

I am following the tutorial at part two. After adding typography.js config gatsby-config.js, and run

gatsby develop

I get the following error, the server not starting.

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 "onPreBootstrap" which isn't an API.

I try to copy and paste the code form the tutorial and reinstall node, but keep getting the same error. Please help to check.

bug

Most helpful comment

In your site run:

npm install --save gatsby@latest

All 4 comments

Oh hmmm sorry. This plugin along with gatsby were updated earlier together. Just update Gatsby to the latest version and it'll work.

Just tried again, the npm command

npm install --global gatsby-cli

installs:
[email protected]
I think this is the lastest. Still not working. :/

In your site run:

npm install --save gatsby@latest

It works! Thanks for helping.
Hope the main release will fix this soon. :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

omrllm picture omrllm  Â·  83Comments

KyleAMathews picture KyleAMathews  Â·  97Comments

cusspvz picture cusspvz  Â·  128Comments

blainekasten picture blainekasten  Â·  130Comments

OleksandrSachuk picture OleksandrSachuk  Â·  75Comments