fullcalendar-reactWrapper
fullcalendar-reactWrapper copied to clipboard
Module not found for Typescript on VS code "Could not find a declaration file for module 'fullcalendar-reactwrapper'"
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-reactwrapperif it exists or add a new declaration (.d.ts) file containingdeclare 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