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

update react dependencies to inclued 17 as npm 7 won't install without #77

Closed
wants to merge 1 commit into from
Closed

update react dependencies to inclued 17 as npm 7 won't install without #77

wants to merge 1 commit into from

Conversation

rphuber
Copy link

@rphuber rphuber commented Feb 5, 2021

Types of changes

Update to react and react-dom dependencies to include v17 as npm 7 will not install the slice-machine properly without them.

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

As I was working through the getting started I was having trouble getting the prismic sm --setup command to work. I was getting errors about react dependencies and it would fail the install of them. I was using npm v7 and it looks like it handles dependencies in a much more strict manner. When I downgraded to npm v6 it worked with just warnings about the dependency issues. This should fix that issue for this library. I will put in another pr for the essential-slices package.

update package.json to include v17 of react

will fix install problem with npm v7

@lihbr
Copy link
Member

lihbr commented Feb 6, 2021

Hey, thank you so much for submitting a PR!

This was a known issue indeed, prismicio/prismic-cli#77

cc @hypervillain

@rphuber
Copy link
Author

rphuber commented Feb 7, 2021

Sorry that I missed that other issue. I can confirm that both libraries work with react 17. Let me know if you want me to update the pr or anything else.

@lihbr
Copy link
Member

lihbr commented Feb 17, 2021

Hey @rphuber I'm sorry I didn't manage to use your PR but we truly appreciate you submitting one! Next SliceZone has been updated to allow correct peer dependencies :) https://www.npmjs.com/package/next-slicezone

@lihbr lihbr closed this Feb 17, 2021
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 this pull request may close these issues.

2 participants