Receiving factoryThrew error from custom widget.

0
Hello, I am trying to use https://github.com/react-grid-layout/react-grid-layout library to have customizable dashboard. I try the following code import { Component, createElement } from "react"; import { HelloWorldSample } from "./components/HelloWorldSample"; import "./ui/Gridlayout.css"; import GridLayout from "react-grid-layout"; export class Gridlayout extends Component {   render() {     // layout is an array of objects, see the demo for more complete usage         const layout = [       { i: "a", x: 0, y: 0, w: 1, h: 2, static: true },       { i: "b", x: 1, y: 0, w: 3, h: 2, minW: 2, maxW: 4 },       { i: "c", x: 4, y: 0, w: 1, h: 2 }     ];         return (       <GridLayout         className="layout"         layout={[{ i: "a", x: 0, y: 0, w: 1, h: 2, static: true },         { i: "b", x: 1, y: 0, w: 3, h: 2, minW: 2, maxW: 4 },         { i: "c", x: 4, y: 0, w: 1, h: 2 }]}         cols={12}         rowHeight={30}         width={1200}       >         <div key="a">a</div>         <div key="b">b</div>         <div key="c">c</div>       </GridLayout>     );   } }   No matter what i try i am receiving    factoryThrew d@http://localhost:8080/mxclientsystem/mxui/mxui.js?638150743384004202:5:553   undefinedModule d@http://localhost:8080/mxclientsystem/mxui/mxui.js?638150743384004202:5:553   Loading module widgets/mendix/ failed! Check script file for syntax errors.   I would appreciate if an expert try to use the library inside Mendix and figure out the problem.  Mendix Studio Version 9.24.4 and Mendix10 returns same result.   Best Regards, Arda Kırankaya
asked
0 answers