-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
React 16 support #866
Comments
i'll investigate the react 16 upgrade after #991 (updating to 15.5 and resolving deprecation warnings) |
Will blueprint 1.x ever be compatible with React 16? |
I guess |
React 16 support has been sign posted for milestone v2.0.0 Given the 26 open issues on v2.0.0 this implies a very long wait for this. No criticism just an observation. Would it be useful to create a v2.0.0 release that only includes the fixes needed for React 16 and move the other 25 issues to v3.0.0? I realise that is a pain, but I suspect a lot of package maintainers are going to get similar requests. Your work is awesome. Massively appreciate the quality of the framework. |
@awjreynolds we'll try to make a release of blueprint that's compatible with React 16 before we do all the feature work in the 2.0 milestone. So we might make a release that supports 0.14.x, 15.x, and 16.x all at once on the 1.x track. Or it might be blueprint core 2.0 as you suggested, and the other features/breaking changes come in 3.0. We're looking into this in the next couple weeks. |
working on React 16 support... easy to add a but wait, some serious gotchas:
|
Yes, ideally we should run tests against both versions of React that we support. A good way to do this is with multiple containers in CircleCI. Look at the tslint repo as an example -- we run tests with multiple versions of Node and
For now, we could compile against Enzyme 2.x types. Is there some subset of the test suite that doesn't use enzyme which we could run in the container where React 16 is installed? I'd really like to optimize for speed here and get a version of Blueprint out that at least doesn't generate peer dependency warnings with React 16, even if we have to say that official support (with Enzyme 3.x running our tests) is coming later (doesn't necessarily have to be the next major version, just whenever we finish migrating the tests). |
Sorry guys, would you be that kind to just explain a person who is just starting with React (me) how to solve this issue? I can't get rid off those 2 lines:
|
@marekdlugos see #201 (comment). you can safely ignore those warnings |
Hi, I'm trying to use a MultiSelect but keep getting
And I also tried the recommended commands if you see Just wondering what I can do since I really want to use this MultiSelect haha. Thank you! |
@mayaah a few things:
hope that helps 😄 |
this is not strictly true. react 16 works with the latest 1.x packages. |
@adidahiya Does the new 1.x package depend on EDIT: It doesn't accept the latest |
@shravan2x the 1.x packages do not depend on r-t-g (they still use react-addons-css-transition-group) so if you're seeing that dependency then you must be bringing in a 2.0 package somehow. Are you perhaps using [email protected]? That one depends on core 2.0; downgrade to 0.14. |
@giladgray I'm not using labs or any other 2.0 package that I know of. These are the ones I'm using:
|
Hmm then you shouldn't need that r-t-g dependency at all as you already have the add-ons one. Have you tried removing it? |
This is what happens when I do: Uncaught Error: Cannot find module "react-transition-group/CSSTransitionGroup"
at webpackMissingModule (index.js:10)
at Object.__webpack_exports__.b (index.js:10)
at __webpack_require__ (bootstrap 3799b691625e1c110800:19)
at Object.<anonymous> (index.js:8)
at __webpack_require__ (bootstrap 3799b691625e1c110800:19)
at Object.<anonymous> (props.js:45)
at __webpack_require__ (bootstrap 3799b691625e1c110800:19)
at Object.__webpack_exports__.a (contextMenu.js:1)
at __webpack_require__ (bootstrap 3799b691625e1c110800:19)
at Object.defineProperty.value (tetherUtils.js:71)
webpackMissingModule @ index.js:10
__webpack_exports__.b @ index.js:10
__webpack_require__ @ bootstrap 3799b691625e1c110800:19
(anonymous) @ index.js:8
__webpack_require__ @ bootstrap 3799b691625e1c110800:19
(anonymous) @ props.js:45
__webpack_require__ @ bootstrap 3799b691625e1c110800:19
__webpack_exports__.a @ contextMenu.js:1
__webpack_require__ @ bootstrap 3799b691625e1c110800:19
Object.defineProperty.value @ tetherUtils.js:71
__webpack_require__ @ bootstrap 3799b691625e1c110800:19
(anonymous) @ app.3799b691625e1c110800.js:2728
__webpack_require__ @ bootstrap 3799b691625e1c110800:19
(anonymous) @ HeaderContainer.jsx:6
__webpack_require__ @ bootstrap 3799b691625e1c110800:19
Object.defineProperty.value @ index.js:1
__webpack_require__ @ bootstrap 3799b691625e1c110800:19
(anonymous) @ AppContainer.jsx:8
__webpack_require__ @ bootstrap 3799b691625e1c110800:19
Object.defineProperty.value @ index.js:1
__webpack_require__ @ bootstrap 3799b691625e1c110800:19
(anonymous) @ main.jsx:9
__webpack_require__ @ bootstrap 3799b691625e1c110800:19
(anonymous) @ app.3799b691625e1c110800.js:10173
__webpack_require__ @ bootstrap 3799b691625e1c110800:19
(anonymous) @ bootstrap 3799b691625e1c110800:62
(anonymous) @ bootstrap 3799b691625e1c110800:62 It mentions import { Button, Intent, Navbar, NavbarDivider, NavbarGroup, NavbarHeading } from '@blueprintjs/core'; |
@shravan2x please open a new issue if you need support, this is getting out of scope. |
Preemptively creating an umbrella issue for this task, like ant-design/ant-design#5377.
Related React issues / deprecations:
We should try to support both v15 and v16 in a single Blueprint version (maintaining multiple compatible releases will be cumbersome).
Sub-tasks:
ReactDOM.createPortal
instead ofReactDOM.unstable_renderSubtreeIntoContainer
([Portal] Switch from unstable_renderSubtreeIntoContainer() to unstable_createPortal() for compatibility with React Fiber #1509)The text was updated successfully, but these errors were encountered: