It seems that JQuery was completely removed in your last version. I still need legacy version of JQuery jstree as I made significant updates to organizationTree. But now I get the following error when building the project:
Property 'jstree' does not exist on type 'JQuery<HTMLElement>'.
Another side effect from last update is losing all enums in Angular as they aren't included in service-proxies
7 Answer(s)
-
0
JQuery problem is solved by installing the missing package.
I'm not sure yet about enums generation in proxies and why they aren't supported now
-
0
Hi @kasem
I'm not sure yet about enums generation in proxies and why they aren't supported now
Enum generation is also changed, see https://github.com/aspnetzero/aspnet-zero-core/issues/2119
-
0
Several discussions on github and I'm not sure I catched the change. Is there any documentation / description about enum change?
-
0
@kasem
No, we have done it on the dev branch. But I think it is not related to your jstree problem. If you want to use it in your project;
- you need to have JQuery included in your project
- You also need to include jQuery and jsTree typings, see https://github.com/aspnetzero/aspnet-zero-core/blob/753a987cc199dcef6a57de425eafa5cc4a0ac3d3/angular/src/typings.d.ts
-
0
Hi @ismcagdas
I solved jstree problem already.
I just wanted little details about enum generation in service-proxies as I lost them all. discussion in the link didn't clarify what I should do to get them and where
P.S. Sorry for mixing two topics in the same ticket
-
0
@kasem No problem at all.
Previously NSWAG was generating enums like below;
export enum FriendshipState { _1 = 1, _2 = 2, }
Because of this dirty definition, we were re-defining enums in some other file with meaningful names. With the issue https://github.com/aspnetzero/aspnet-zero-core/issues/2119 it is changed like below;
export enum FriendshipState { Accepted = 1, Blocked = 2, }
So, now we don't have to re-define auto-generated enums anymore.
-
1
Perfect! Thank you
I'll try this and let you know if any questions.