-
-
Notifications
You must be signed in to change notification settings - Fork 599
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
# Conflicts: # packages/core/src/extensions/DraggableBlocks/DraggableBlocksPlugin.tsx
# Conflicts: # packages/core/src/extensions/DraggableBlocks/DraggableBlocksPlugin.tsx
@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. |
closed by #74 |
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