gatsby-plugin-modal-routing
gatsby-plugin-modal-routing copied to clipboard
Needs an update for supporting gatsby v3
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.
Per https://www.gatsbyjs.com/docs/reference/release-notes/migrating-from-v2-to-v3/:
replaceComponentRenderer => wrapPageElement
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