Thank you for your replay and your time,
I did what you told to me and that worked to ingnore ts file. But unfortunately i got a new error :
ERROR in ./node_modules/@canvasjs/react-charts/canvasjs.react.js 20:15-42
Module not found: Error: Can’t resolve ‘@canvasjs/charts’ in ‘…\node_modules\@canvasjs\react-charts’
I think the function “var CanvasJS = require(‘@canvasjs/charts’)” line 20 in the file “canvasjs.react.js” doesn’t work for me but i’m not sure.