echarts
echarts copied to clipboard
[Bug] Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
Version
5.4.3
Link to Minimal Reproduction
Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
Steps to Reproduce
Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
Current Behavior
报错:Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
是否可以考虑使用更高版本???
Expected Behavior
不报错 Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
Environment
No response
Any additional comments?
No response
and then ? How solve ?
@dohuuhuy We are debugging this problem. Could you please provide more information? How can I reproduce this error?
you using nextjs 14 "dependencies": { "axios": "^1.6.7", "classnames": "^2.5.1", "echarts": "^5.4.3", "json-edit-react": "^1.2.2", "lodash": "^4.17.21", "lowdb": "^7.0.1", "next": "14.1.0", "react": "^18", "react-dom": "^18", "sass": "^1.70.0", "simple-git": "^3.22.0", "styled-components": "5.2.0-test.12", "uuid": "^9.0.1" }, "devDependencies": { "@types/lowdb": "^1.0.15", "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", "@types/uuid": "^9.0.8", "eslint": "^8", "eslint-config-next": "14.1.0", "typescript": "^5" } node module show error ditto
Can you provide a minimal repo for reproduction? Thanks.
Can you provide a minimal repo for reproduction? Thanks.
最小的复制用处不大,因为这个错误非常玄学。我本地目前已经无法触发这个错了(可能是我这几天不开发echarts相关的部分导致的)。之前在 vue 3 中开发工具类时会出现这个错误,甚至 node_modules 目录上都红了,还忽略不了这就非常难受。再怎么说用 ES3 版本也是低了些,或者你们跟微软协商下,不让TS 5 有这个 ES5 的最低标准。
Can you provide a minimal repo for reproduction? Thanks.
To reproduce this issue, simply update TypeScript to version 5 or higher
Getting this problem too. Using TypeScript 5.3.3 and ECharts 5.4.3. Blocker for us when migrating from Chart.js.
@janmiderback Is it possible to provide us more information? A repo or a demo link?
@plainheart Well this is a bit embarrassing... Out of a sudden it now seems to work. I have no clue what has changed, besides sleeping, reopening in VS Code and trying again. 🤦♂️
For what it's worth, I put up a working example here: echarts-ts5-working. Take it for what it is and if it is helpful to anyone, you're welcome.
最小的复制用处不大,因为这个错误非常玄学。我本地目前已经无法触发这个错了(可能是我这几天不开发echarts相关的部分导致的)。之前在 vue 3 中开发工具类时会出现这个错误,甚至
node_modules目录上都红了,还忽略不了这就非常难受。再怎么说用 ES3 版本也是低了些,或者你们跟微软协商下,不让TS 5 有这个 ES5 的最低标准。
@plainheart Well this is a bit embarrassing... Out of a sudden it now seems to work. I have no clue what has changed, besides sleeping, reopening in VS Code and trying again. 🤦♂️
For what it's worth, I put up a working example here: echarts-ts5-working. Take it for what it is and if it is helpful to anyone, you're welcome.
Maybe can try reload VS-Code to slove this question
in VSC -> >reload
同样遇到了这个问题,目前理解就是IDE抽风。可以试试reload下vsc,已解决这个问题。