React-transition-group: "../../node_modules/@types/react-transition-group"' has no exported member 'CSSTransitionGroup'

Created on 25 May 2020  路  1Comment  路  Source: reactjs/react-transition-group

What is the current behavior?

When npm installing this lib as per readme and importing as follows:

import { CSSTransitionGroup } from 'react-transition-group'

The build produces the error

Module '"../../node_modules/@types/react-transition-group"' has no exported member 'CSSTransitionGroup'

What is the expected behavior?

build without error when following readme instructions.

Most helpful comment

Fixed by using current version instead (react documentation links to old version).

>All comments

Fixed by using current version instead (react documentation links to old version).

Was this page helpful?
0 / 5 - 0 ratings