Anthilla / Antd

Anthilla System Daemon, Linux .net c# System Manager, binded with systemd. High Availability, Fault Tolerance
http://www.anthilla.com/en/software/antd/
Other
26 stars 13 forks source link

error TS2605: JSX element type Xxx is not a constructor function for JSX elements. #55

Closed KellerLong closed 6 years ago

KellerLong commented 6 years ago

- versions:ant 3.2.3/3.3.3

- component:Layout/Content/Header/Footer

- tsVersions:typescript-2.7.2

- ts Error: TS2605: JSX element type 'Component<BasicProps, ComponentState>' is not a constructor function for JSX elements. Types of property 'render' are incompatible. Type '() => ReactNode' is not assignable to type '{ (): ReactNode; (): ReactNode; (): false | Element; }'. Type 'ReactNode' is not assignable to type 'false | Element'. Type 'string' is not assignable to type 'false | Element'.

- tsconfig: { "compilerOptions": { "allowSyntheticDefaultImports": true, "experimentalDecorators": true, "module": "esnext", "allowJs": true, "target": "es5", "lib": ["es6", "dom"], "sourceMap": true, "jsx": "react", "moduleResolution": "node", "rootDir": "src", "baseUrl": ".", "paths": { "": ["", "src/*"] } }, "include": [ "src/*/" ], "files": [ "global.ts" ], "exclude": [ "node_modules" ] }