Skip to content

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

Description

@lee95292

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions