- 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'.
- 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" ] }