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…
- You must login to post comments
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!
- Andrew Burnett-Thompson answered 3 years ago
- last edited 3 years ago
- You must login to post comments
Please login first to submit.