question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Peer dependency compatibility with Gatsby 4.0

See original GitHub issue

Issue Summary

Gatsby 4.0 is out but gatsby-plugin-advanced-sitemap restricts the peer dependency to 3.0. This blocks running npm audit fix, amongst other projects. Is there a plan to update? Looks like renovate is trying to at https://github.com/TryGhost/gatsby-plugin-advanced-sitemap/pull/198

To Reproduce

See https://github.com/TryGhost/gatsby-plugin-advanced-sitemap/blob/master/package.json#L32

  1. have a package.json with Gatsby 4.0 and gatsby-plugin-advanced-sitemap 2.0
  2. run npm audit fix (using node 16)
  3. see it complain on mismatch on peer dependency

Technical details:

  • Gatsby Version: 4.0
  • Node Version: 16.11.1
  • OS: Mac

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:22
  • Comments:10

github_iconTop GitHub Comments

10reactions
tonycommented, Feb 24, 2022

There is a new package: gatsby-plugin-complex-sitemaps

Haven’t tried it yet, but there’s a migration guide from gatsby-plugin-advanced-sitemap

7reactions
simon-abbottcommented, Dec 22, 2021

I can confirm that it breaks with gatsby 4.4.0 because it’s using pify, but not declaring it as a dependency.

https://github.com/TryGhost/gatsby-plugin-advanced-sitemap/blob/5a7efa130e3f6e64e7f04e582b1fa9cef9dd0bc1/src/utils.js#L2

https://github.com/TryGhost/gatsby-plugin-advanced-sitemap/blob/5a7efa130e3f6e64e7f04e582b1fa9cef9dd0bc1/package.json#L50-L56

Not entirely sure how it was working until now, but it isn’t anymore.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrating from v3 to v4 - Gatsby
warning Plugin gatsby-plugin-acme is not compatible with your gatsby version ... This is because the plugin needs to update its peerDependencies to include ......
Read more >
gatsby-plugin-postcss versions and peer dependencies
The table below has a list of all versions of gatsby-plugin-postcss with compatible (peer) dependencies. Filter by. e.g: 12.x, 1.2.7. - OR -....
Read more >
Gatsby Changelog | 5.3.0
Support for MDX v2: We are updating gatsby-plugin-mdx to be compatible with ... gatsby-source-shopify : Fix peerDependencies for gatsby-plugin-image via PR ...
Read more >
node.js - Getting an error when using npm to install a package
npm config set legacy-peer-deps true npm install --force ... npm install gatsby-plugin-mdx @mdx-js/mdx@v1 @mdx-js/react@v1. Hope it works ...
Read more >
gatsby-plugin-netlify - npm
gatsby -plugin-netlify. 5.1.0 • Public • Published a month ago. Readme · Code Beta · 6 Dependencies · 103 Dependents · 283 Versions ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found