You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "xyz-26 (via GitHub)" <gi...@apache.org> on 2025/03/19 03:40:10 UTC

[I] [Bug] Duplicate Type Declaration Files Causing Compatibility Issues in ECharts Dist [echarts]

xyz-26 opened a new issue, #20836:
URL: https://github.com/apache/echarts/issues/20836

   ### Version
   
   5.6.0
   
   ### Link to Minimal Reproduction
   
   https://codesandbox.io/p/devbox/serene-shape-forked-9fdkkm?file=%2Fsrc%2FChartOptions.tsx%3A16%2C1&workspaceId=ws_Cu6yPpuirbVPUqy9GZp5AL
   
   ### Steps to Reproduce
   
   Check for type errors in the options within src/ChartOptions.tsx
   
   ### Current Behavior
   
   TypeScript throws compatibility errors due to duplicate/conflicting type declarations from these two files. This is caused by TypeScript's type compatibility rules for private/protected members ([TS Handbook Reference](https://www.typescriptlang.org/docs/handbook/type-compatibility.html#private-and-protected-members-in-classes)).
   
   ### Expected Behavior
   
   1. Merge or partial consolidation of the type declaration files (echart.d.ts and shared.d.ts) to eliminate compatibility conflicts
   
   2. Official documentation clarifying the proper usage pattern for these type definitions
   
   3. An official fix in future ECharts releases if this is confirmed as a packaging issue
   
   ### Environment
   
   ```markdown
   N/A
   ```
   
   ### Any additional comments?
   
   Related discussion: https://github.com/hustcc/echarts-for-react/issues/589#issuecomment-2729226787


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org