Peer dependency compatibility with Gatsby 4.0
See original GitHub issueIssue 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
- have a package.json with Gatsby 4.0 and gatsby-plugin-advanced-sitemap 2.0
- run
npm audit fix
(using node 16) - see it complain on mismatch on peer dependency
Technical details:
- Gatsby Version: 4.0
- Node Version: 16.11.1
- OS: Mac
Issue Analytics
- State:
- Created 2 years ago
- Reactions:22
- Comments:10
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
I can confirm that it breaks with gatsby
4.4.0
because it’s usingpify
, 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.