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
Can't install Box UI Elements v15.0.0 - draft.js #3023
Comments
@KevinForys, please downgrade your node version to Let us know if anything else goes wrong and create a new issue. |
Hi there, Tested with node 14 (official deb package) : the issue is the same.
then
|
@euidzero what version of react are you using? if youre using react 18, you may see errors. |
I did not install anything else just try to install box-ui-element in a fresh empty directory with npm. |
I had luck downgrading npm to 6.14.17 |
@euidzero please ensure you are using |
At that stage there's not even code. Simply installing both box-ui-elements 15 (requires react 17) and its dependencie draftjs@^0.10.1 (requires react <17) leads to an unsolvable conflict. npm 6.14.17 will accept to install both packages with a warning : if the code does not use draftjs this might work. Getting rid of the draftjs dependency (no more maintained) would solve this. |
@greg-in-a-box is there a roadmap for when the UI Elements will become compatible with the latest LTS version of Node? |
Running into this as well. Our project is on React 17, but box-ui-element's dependency on (now defunct?) draft-js which doesn't support React 17 is breaking installation.
|
Like others reported, I was able to get it installed on React 17 after downgrading to node 14 (lts/fermium) and npm 6.14. |
Great to see this library supports node 18! Any updates on roadmap for react 18 support? We would be happy to help |
The problem is probably that the dependencies of this package is not correct. The Like the internal box linter configuration package If I remove every development dependency for testing (I think those could be removed from the published
To resolve the issue a deeper digging is needed to resolve issues with transient dependencies in the used packages. Also, the react is a peer dependency for the compiled es modules. For the files in the compiled dist folder the react is included. |
Environment:
Steps to reproduce the problem:
I'm currently trying a minimal sandbox app with the latest Box UI Elements, I'm blocked at the first step :
My package.jon (dependencies are a copy/paste from the peer dependencies of Box UI Elements package.json v15.0.0) :
What went wrong? (Screenshots, console logs, or HAR files can be helpful here)
The peer dependencies of Box UI Elements 15.0.0 required React 17 and draft-js 0.10.1.
But draft-js 0.10.1 not accept React 17...
How can I avoid / fix properly this error? I want to stay on Box UI Elements 15 and React 17.
Thanks to the community 🙂
The text was updated successfully, but these errors were encountered: