Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Needs an update for supporting gatsby v3 #57

Open
bebbi opened this issue Mar 7, 2021 · 2 comments
Open

Needs an update for supporting gatsby v3 #57

bebbi opened this issue Mar 7, 2021 · 2 comments

Comments

@bebbi
Copy link

bebbi commented Mar 7, 2021

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
Copy link
Author

bebbi commented Mar 7, 2021

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

replaceComponentRenderer => wrapPageElement

@Valkyrihane
Copy link

Valkyrihane commented May 12, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants