Cannot find namespace mendix for custom widget code

0
interface WrapperProps { "class"?: string; friendlyId: string; mxObject: mendix.lib.MxObject; style: string; } I am creating custom widget where I want to call nanoflow which is having date as parameter. How can i do that? Also facing above error in typescript for mendix mx object. How to resolve?
asked
1 answers
0

You would have to install the Mendix Client API via NPM. Did you do that? Also add the mendix-client to your tsconfig file, like below:

{
  "extends": "./node_modules/@mendix/pluggable-widgets-tools/configs/tsconfig.base.json",
	"compilerOptions": {
		"jsx": "react",
        "types": [ "mendix-client" ],
		"lib": [      
			"es2017",
			"dom"
		]		
    }

}

 

answered