-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working in Angular 19 #437
Comments
I had the same problem and had to downgrade echarts to ~5.4.3 (until the problem is fixed) |
I have installed the latest ngx-echarts (v19) but the problem persist...I'm using echarts 5.5.1 I have to do something else? |
@filippobrigati |
Alternatively, applying the following patch using diff --git a/index.d.ts b/index.d.ts
index 811908a8734db3b4fb270e95ef47cc39eb6bc05c..d8fe2dafc7d40da96c9c7da3fd447d7107de0439 100644
--- a/index.d.ts
+++ b/index.d.ts
@@ -20,4 +20,4 @@
import * as echarts from './types/dist/echarts';
// Export for UMD module.
export as namespace echarts;
-export = echarts;
\ No newline at end of file
+export * from './types/dist/echarts';
\ No newline at end of file |
thanks, it worked |
Where can we import things like They are not available on /core or /charts or /components also, previously I had code like this: and now after I removed use of the type due to Typescript error saying ":Property 'series' comes from an index signature, so it must be accessed with ['series']." |
According to the import type { SeriesOption } from 'echarts/types/dist/shared'; |
I've got the same problem after upgrading Angular from version 18 to 19.. -I tried adjusting the configuration of tsconfig.json, but that didn't solve it; Could the problem for Angular 19 (temporarily) be solved by Echarts devs by patching the index.d.ts code from
to
? |
I tried changing all my imports to that path for Also BUT none of this changing import paths feels like the correct long term solution here. I can change them in my app, but the auto complete in VS Code will most likely still suggest just using '/echarts' and other devs on the team won't know to dig further into the package for the correct import path. Late EDIT:
|
Thanks! Unfortunately it's not the solution. The problem is that TypeScript is not accepting the Common.js syntax in the Node.js file index.d.ts in a EMS based app. I am able to silence the error by adding "skipLibCheck": true to "compilerOptions" in my tsconfig.json though. Might not be the best solution, but as long as Echarts has no fix for it, it works to prevent my build from failing. |
I do not have any direct imports of echarts other than I understand the core issue lies with the echarts dependency but is there a way to fix this other than with |
I face following error when updater angular 18 to angular 19
[ERROR] TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. [plugin angular-compiler]
The text was updated successfully, but these errors were encountered: