react-widgets icon indicating copy to clipboard operation
react-widgets copied to clipboard

momentLocalizer: Uncaught TypeError: Cannot call a class as a function

Open ikreb7 opened this issue 3 years ago • 0 comments

I get the error message: Uncaught TypeError: Cannot call a class as a function. This is my code:

import moment from "moment";
import momentLocalizer from "react-widgets-moment";

momentLocalizer(moment); ...

I get this error only with react-widgets and react-widgets-moments >=5.x. With react-widgets": "^4.2" and "widgets-moment": "^4.0.7" it works.

ikreb7 avatar Jun 22 '21 12:06 ikreb7