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

Module not found issue - "Can't resolve react-transition-group" #2

Open
lee95292 opened this issue Oct 11, 2019 · 1 comment
Open

Comments

@lee95292
Copy link

lee95292 commented Oct 11, 2019

When i start my project using this library via npm start, this error occured.

source code

import React from 'react';
import ReactDom from 'react-dom';
import Carousel from 'react-image-carousel';
import '../style/appstyle.css';

const img = [
    '/img/reactlogo.png',
    '/img/sogae1.jpg'
];

class MyCarousel extends React.Component{

    render(){
        return (
            <Carousel 
                images={img}
                thumb={false}
                loop={true}
                autoplay={4000}
            />
        );
    }
}
export default MyCarousel;

detailed error message

./node_modules/react-image-carousel/lib/ReactImageCarousel.js

Module not found: Can't resolve 'react-transition-group' in 'C:[my project path]\myapp\node_modules\react-image-carousel\lib

i dont know it exactly, solved this problem by

npm i react-transition-group

thanks for provide useful library

@LuanMiranda77
Copy link

use o comando que resolve yarn add react-transition-group@1.x

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

No branches or pull requests

2 participants