Skip to content

upgrade to react 18 #68

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

Closed
wants to merge 7 commits into from
Closed

upgrade to react 18 #68

wants to merge 7 commits into from

Conversation

YousefED
Copy link
Collaborator

upgrade to react 18, closes #66

We could choose to keep react 17 compatibility, but as this library is in it's infancy, let's upgrade to v18 until we're sure non-17 compatibility is a breaking issue for users

@vercel
Copy link

vercel bot commented Nov 22, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
blocknote ✅ Ready (Inspect) Visit Preview Dec 8, 2022 at 0:44AM (UTC)

# Conflicts:
#	packages/core/src/extensions/DraggableBlocks/DraggableBlocksPlugin.tsx
@YousefED
Copy link
Collaborator Author

@matthewlipski are you sure the move of deps fixes the build? I think the correct way would still be that React should be peerDeps instead of deps, and it seems like the failure of the test was due to a playwright error, not a build error, right?

@matthewlipski
Copy link
Collaborator

@matthewlipski are you sure the move of deps fixes the build? I think the correct way would still be that React should be peerDeps instead of deps, and it seems like the failure of the test was due to a playwright error, not a build error, right?

Turns out I was wrong about playwright being the issue. The actual issue is a react version mismatch in the built environment, for which adding react dependencies in blocknote/core seems to fix. But you're right, it should read the peerDeps and figure out that react 18 is a requirement, yet after building, package-lock.json still includes a dependency on react 17 for blocknote/core. I don't know much about dependency management, so I'm not sure why this is happening, and this fix doesnt make much sense to me (since react isnt needed in blocknote/core), but it does indeed cause react 17 to stop showing up in package-lock.json.

@YousefED
Copy link
Collaborator Author

closed by #74

@YousefED YousefED closed this Jan 18, 2023
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.

TailwindCSS and React18 Support
2 participants