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

Replace deprecated dependency react-addons-css-transition-group #1051

Closed
punya opened this issue Apr 29, 2017 · 15 comments
Closed

Replace deprecated dependency react-addons-css-transition-group #1051

punya opened this issue Apr 29, 2017 · 15 comments

Comments

@punya
Copy link

punya commented Apr 29, 2017

Bug report

  • Package version(s): 1.16.0
  • Browser and OS versions: Chrome 57 on OSX (but it doesn't matter)

Steps to reproduce

  1. Install Blueprint using YARN

Actual behavior

Requires the deprecated react-addons-css-transition-group package as a peer dependency.

Expected behavior

Allows (preferably, recommends) the react-transition-group fork, as recommended by the README for react-addons-css-transition-group.

@giladgray giladgray changed the title Remove deprecated dependency react-addons-css-transition-group Replace deprecated dependency react-addons-css-transition-group May 1, 2017
@bensalilijames
Copy link
Contributor

Are you accepting PRs for this? Would quite happily fix!

@llorca
Copy link
Contributor

llorca commented May 5, 2017

@benhjames for sure, we'd appreciate a contrib!

@remziduzagac
Copy link

Im still having this error with 1.17.1 version. is that normal?

@bensalilijames
Copy link
Contributor

Yeah - it's a breaking change so it was decided to release with 2.0.0 instead - the patch 1.17.1 reverted the fix. 🙂

@adidahiya adidahiya reopened this May 23, 2017
@adidahiya adidahiya modified the milestones: 2.x, 1.17.0 May 23, 2017
@remziduzagac
Copy link

remziduzagac commented May 23, 2017 via email

@llorca llorca modified the milestones: 2.x, 2.0.0 May 23, 2017
@tangert
Copy link

tangert commented Jul 13, 2017

is this still open? dealing with this error right now, trying to figure it out. has an update been made that fixes the break?

@rohmanhm
Copy link

Anybody would like make a PR I'll appreciated.

@bensalilijames
Copy link
Contributor

The PR that fixed this was reverted since it is a breaking change, and will likely release with v2.0.0 of Blueprint. :)

@mkmpvtltd1
Copy link

i have same issue how can i fix this?

@giladgray
Copy link
Contributor

@mkmpvtltd1 ignore it! It's not an error, just a casual warning. Your app will continue to function perfectly despite the outdated library.

We'll bump all our dependencies later this year.

@jsina
Copy link

jsina commented Sep 10, 2017

I've get the same error
"Uncaught Error: Cannot find module "react-addons-css-transition-group"

here is my package.json

"dependencies": {
    "@blueprintjs/core": "^1.27.0",
...

@ChisholmKyle
Copy link

I'm trying to upgrade to React 16. If I try to build without the react-addons-css-transition-group dependency, I get this error when running browserify:

Error: Cannot find module 'react-addons-css-transition-group' from '/path/to/project/node_modules/@blueprintjs/core/dist/components/overlay'

So I try to install "react-addons-css-transition-group" but the module does not support React 16. However if I try to install an alpha version compatible with React 16 as follows:

npm install --save-dev react-addons-css-transition-group@^16.0.0-alpha

I get an error that it's incompatible with Blueprintjs:

npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer @blueprintjs/[email protected] wants react-addons-css-transition-group@^15.0.1 || ^0.14

Is it possible to use blueprintjs v1.x with React 16? I thought there was an update recently to at least try it out.

@giladgray
Copy link
Contributor

giladgray commented Oct 12, 2017

@ChisholmKyle in my testing, it seemed that react-addons-css-transition-group@15 totally supports React 16! I wasn't even aware there was an alpha, or that such a thing would be necessary (pretty sure it isn't).

it's unsupported by the React dev team (hence the new package), but the existing API is still fully functional. so you should be able to install it alongside Blueprint using a version that matches our peerDependency.

either way, this issue will be like the first thing we do when we begin work on 2.0 later this year.

@giladgray
Copy link
Contributor

@jsina you must declare your own dependencies on react, react-dom, and react-addons-css-transition-group because we declare them as peerDependencies. https://nodejs.org/en/blog/npm/peer-dependencies/

@ChisholmKyle
Copy link

I found out my problem. I'm using typescript and it was actually the package @types/pure-render-decorator causing the problem. When I removed that dependency from package.json, React 16 is now working with blueprint.js and react-addons-css-transition-group!

Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests