You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "bgpedersen (via GitHub)" <gi...@apache.org> on 2025/03/12 13:51:00 UTC

Re: [I] [Bug] Compatibility with ESM [echarts]

bgpedersen commented on issue #20554:
URL: https://github.com/apache/echarts/issues/20554#issuecomment-2717954564

   We have the same ESM error after upgrading to typescript 5.8. This error occurs because TypeScript 5.8 enforces stricter rules regarding export = in ESM modules. The echarts library is using the export = syntax, which is incompatible.
   
   ```
   Error: node_modules/echarts/index.d.ts:23:1 - error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.
   
   23 export = echarts;
   ```


-- 
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

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