JSX element type 'FusionChartStatic' is not a constructor function for JSX elements. Type 'FusionChartStatic' is missing the following properties from type 'Element': type, props, keyts #67
We have implemented fusioncharts in react SPFX framework project, on the implemenation of
import * as FusionCharts; and
<FusionCharts
type="line"
width="600"
height="400"
dataSource={{
chart: {
theme: 'fusion',
caption: 'Total footfall in Bakersfield Central',
subCaption: 'Last week',
xAxisName: 'Day',
/>
; we are getting below error:
JSX element type 'FusionChartStatic' is not a constructor function for JSX elements.
Type 'FusionChartStatic' is missing the following properties from type 'Element': type, props, keyts(2605)
We have implemented fusioncharts in react SPFX framework project, on the implemenation of import * as FusionCharts; and <FusionCharts type="line" width="600" height="400" dataSource={{ chart: { theme: 'fusion', caption: 'Total footfall in Bakersfield Central', subCaption: 'Last week', xAxisName: 'Day', />
; we are getting below error:
JSX element type 'FusionChartStatic' is not a constructor function for JSX elements. Type 'FusionChartStatic' is missing the following properties from type 'Element': type, props, keyts(2605)
at
versions are as follows:
"@loadable/component": "^5.10.2", "@microsoft/sp-core-library": "1.9.1", "@microsoft/sp-loader": "^1.9.1", "@microsoft/sp-lodash-subset": "1.9.1", "@microsoft/sp-office-ui-fabric-core": "1.9.1", "@microsoft/sp-webpart-base": "1.9.1", "@progress/kendo-data-query": "^1.5.2", "@progress/kendo-theme-default": "^4.2.0", "@progress/kendo-treeview-react-wrapper": "2018.3.1017", "@progress/kendo-ui": "2019.1.412", "@types/es6-promise": "0.0.33", "@types/jquery": "^3.3.31", "@types/react": "16.8.8", "@types/react-dom": "16.8.3", "@types/webpack-env": "1.13.1", "fusioncharts": "^3.14.0-sr.1", "office-ui-fabric-react": "6.189.2", "react": "16.8.5", "react-dom": "16.8.5", "react-fusioncharts": "^3.0.1", "react-imported-component": "^6.1.0" }, "resolutions": { "@types/react": "16.8.8" }, "devDependencies": { "@microsoft/sp-build-web": "1.9.1", "@microsoft/sp-tslint-rules": "1.9.1", "@microsoft/sp-module-interfaces": "1.9.1", "@microsoft/sp-webpart-workbench": "1.9.1", "@microsoft/rush-stack-compiler-2.9": "0.7.16", "gulp": "~3.9.1", }