You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/12/06 13:48:42 UTC

[GitHub] [incubator-echarts] fxxjdedd commented on issue #13763: 5.0 broken with TypeScript@3.9.2+

fxxjdedd commented on issue #13763:
URL: https://github.com/apache/incubator-echarts/issues/13763#issuecomment-739505302


   After a long time of debugging, I finally found the problem:
   
   write code:
   ```
   import 'echarts/lib/chart/line'
   import 'echarts/lib/chart/bar'
   ```
   
   test case1: ok
   - typescript@3.8.3
   - tsconfig -> skipLibCheck: true
   
   test case2: ok
   - typescript@3.8.3
   - tsconfig -> skipLibCheck: false
   
   test case3: ok
   - typescript@3.9.2
   - tsconfig -> skipLibCheck: true
   
   test case4: **failed**
   - typescript@3.9.2
   - tsconfig -> skipLibCheck: false
   
   test case5: ok
   - typescript@4.1.2
   - tsconfig -> skipLibCheck: true
   
   test case6: **failed with more errors!**
   - typescript@4.1.2
   - tsconfig -> skipLibCheck: false
   
   ---- 
   demo project: 
   1. git clone https://github.com/fxxjdedd/temp-repo-echarts-issue -b master
   1.  yarn
   1. test the above use cases in turn
   1. check `npx tsc -v` and run `npx tsc`
   


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

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