SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components

0
0

Some users have reported an error when importing SciChart.js into a TypeScript or JavaScript application:

TS1261: Already included file name ‘C:...\SciChartSurface.d.ts’ differs from file name ‘C:/…/node_modules/scichart/charting/
Visuals/Axis/SciChartSurface.d.ts’ only in casing.

Solution below…

Version
1.0.1248
  • You must to post comments
0
0

The reason for this is the imports are case sensitive, and there may be a mix in casing in your imports.

Ensure all imports for SciChart.js are have capital ‘C’ for ‘Charting’, e.g.

import { SciChartSurface } from "scichart/Charting/Visuals/SciChartSurface";

not this

import { SciChartSurface } from "scichart/charting/Visuals/SciChartSurface";

This will resolve the error!

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.