1

Cloned Modern Charts https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/react-modern-charts

Added webpart src folder to my existing working project. Ran gulp serve and received error:

Argument of type 'typeof ModernCharts' is not assignable to parameter of type 'string | ComponentClass | StatelessComponent'. Type 'typeof ModernCharts' is not assignable to type 'StatelessComponent'. Type 'typeof ModernCharts' provides no match for the signature '(props: IModernChartsProps & { children?: ReactNode; }, context?: any): ReactElement'.

Didn't make any changes to the original code except updated the config.json and package.json to reflect the lines of the modern chart.

Any ideas?

  • Did you add all necessary npm packages to package.json and run npm install? – Lukas Nespor Feb 28 '18 at 21:16
  • I did. I added all the different package reference from their package.json into mine. Of course, ran "npm install" again. – Andy Mar 6 '18 at 16:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.