sanjeev07 / fullcalendar-reactWrapper

17 stars 19 forks source link

Module not found for Typescript on VS code "Could not find a declaration file for module 'fullcalendar-reactwrapper'" #23

Open Hiroki111 opened 5 years ago

Hiroki111 commented 5 years ago

I use VS code and installed fullcalendar-reactWrapper.

However, the module can't be found.

Here is the error message.

Could not find a declaration file for module 'fullcalendar-reactwrapper'. '/home/usr/app/node_modules/fullcalendar-reactwrapper/lib/index.js' implicitly has an 'any' type. Try npm install @types/fullcalendar-reactwrapper if it exists or add a new declaration (.d.ts) file containing declare module 'fullcalendar-reactwrapper';

Here is a snippet of my code.

import * as React from "react";
import FullCalendar from 'fullcalendar-reactwrapper';

const Events = ({ events, isLoadingEvents }: IWithReduxProps) => {
    const renderCalender = () => {       
        return <FullCalendar               
            events={[]}        
        />;
    }

    return (
        <div id="event-wrapper">
            {renderCalender()}
        </div>
    );
}

Running yarn add @types/fullcalendar-reactwrapper didn't install anyting. So, does this mean that this module isn't compatible with Typescript yet?

VS code :version 1.34.0 TypeScript: version 3.4.2