-
Notifications
You must be signed in to change notification settings - Fork 26
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
Type Error is thrown on invoking fatory function imported from mxgraph in Angular 13 #50
Comments
Thanks for your feedback @Dhawaldeep, I can reproduce this bug. |
I can't find much Angular related details, but it looks like the compiler has stricter restrictions on the lib. There are two main problems here. The first is that the this pointer of the factory function becomes to
Another problem is that global variables are not declared, like I did the following steps:
I will note the final solution to the sub-problem. |
@Dhawaldeep An alternative is maxGraph/maxGraph in development, you can follow this repository. |
Hi I suggest we update the README file and the examples. This would prevent users creating issue like this one in the future.
I have already proposed a PR for the rollup example: typed-mxgraph/typed-mxgraph-example-bundled-with-rollup#5. Additional Information |
Following type error is thrown while invoking factory function imported from mxgraph
This happens only on Angular 13 stable version and not on angular 12.
Please see the below public repository link & code snippets for reference
https://github.com/Dhawaldeep/mxgraph-angular-tteen
src/app/mxgraph-engine/mxgraph.ts
src/app/mxgraph-engine/index.d.ts
src/app/app.component.ts
src/app/app.component.html
package.json
Thank you.
The text was updated successfully, but these errors were encountered: