gatsby-plugin-modal-routing icon indicating copy to clipboard operation
gatsby-plugin-modal-routing copied to clipboard

Needs an update for supporting gatsby v3

Open bebbi opened this issue 4 years ago • 2 comments

The error is:

Your plugins must export known APIs from their gatsby-browser.js.

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

- The plugin [email protected] is using the API "replaceComponentRenderer" which is not a known API.

bebbi avatar Mar 07 '21 22:03 bebbi

Per https://www.gatsbyjs.com/docs/reference/release-notes/migrating-from-v2-to-v3/:

replaceComponentRenderer => wrapPageElement

bebbi avatar Mar 07 '21 22:03 bebbi

I'm writing it here because I missed it the first time I stumbled upon this issue:

@lokecarlsson 's PR #60 fixes this. Kuddos to him for making it into a temporary npm package

Run npm i gatsby-plugin-modal-routing-3 and do not forget to replace previous imports/configs with the new module name in order to avoid any conflicts (took me a while before realizing I had not updated my gatsby-config.js)

Cheers

Valkyrihane avatar May 12 '21 18:05 Valkyrihane