Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "kythor"

never mind, after uncommenting the service, it started working.... :shock: :lol:

I have commented out the new service from the angular service-proxies.ts and related modules. compiling is no problem, but as soon as the UI is trying to load, I get the error

ERROR
core.js:1448
Error: Uncaught (in promise): TypeError: __webpack_require__.e is not a function
core.js:1448
message:"Uncaught (in promise): TypeError: __webpack_require__.e is not a function\nTypeError: __webpack_require__.e is not a function\n    at webpackAsyncContext (eval at ./node_modules/@angular/common/locales lazy recursive ^\.\/.*\.js$ (http://localhost:4200/main.bundle.js:6:1), <anonymous>:4199:29)\n    at eval (webpack-internal:///./src/root.module.ts:63:117)\n    at ZoneDelegate.invoke (webpack-internal:///./node_modules/zone.js/dist/zone.js:392:26)\n    at Object.onInvoke (webpack-internal:///./node_modules/@angular/core/esm5/core.js:4965:33)\n    at ZoneDelegate.invoke (webpack-internal:///./node_modules/zone.js/dist/zone.js:391:32)\n    at Zone.run (webpack-internal:///./node_modules/zone.js/dist/zone.js:142:43)\n    at eval (webpack-internal:///./node_modules/zone.js/dist/zone.js:844:57)\n    at ZoneDelegate.invokeTask (webpack-internal:///./node_modules/zone.js/dist/zone.js:425:31)\n    at Object.onInvokeTask (webpack-internal:///./node_modules/@angular/core/esm5/core.js:4956:33)\n    at ZoneDelegate.invokeTask (webp...
promise:ZoneAwarePromise {__zone_symbol__state: 0, __zone_symbol__value: TypeError: __webpack_require__.e is not a function…}
rejection:TypeError: __webpack_require__.e is not a function
stack:"Error: Uncaught (in promise): TypeError: __webpack_require__.e is not a function\nTypeError: __webpack_require__.e is not a function\n    at webpackAsyncContext (eval at ./node_modules/@angular/common/locales lazy recursive ^\.\/.*\.js$ (http://localhost:4200/main.bundle.js:6:1), <anonymous>:4199:29)\n    at eval (webpack-internal:///./src/root.module.ts:63:117)\n    at ZoneDelegate.invoke (webpack-internal:///./node_modules/zone.js/dist/zone.js:392:26)\n    at Object.onInvoke (webpack-internal:///./node_modules/@angular/core/esm5/core.js:4965:33)\n    at ZoneDelegate.invoke (webpack-internal:///./node_modules/zone.js/dist/zone.js:391:32)\n    at Zone.run (webpack-internal:///./node_modules/zone.js/dist/zone.js:142:43)\n    at eval (webpack-internal:///./node_modules/zone.js/dist/zone.js:844:57)\n    at ZoneDelegate.invokeTask (webpack-internal:///./node_modules/zone.js/dist/zone.js:425:31)\n    at Object.onInvokeTask (webpack-internal:///./node_modules/@angular/core/esm5/core.js:4956:33)\n    at ZoneDelegate.invokeTas...
task:ZoneTask {_zone: Zone, runCount: 0, _zoneDelegates: null, …}
zone:Zone {_properties: Object, _parent: Zone, _name: "angular", …}
__proto__:Object {constructor: , name: "Error", message: "", …}

Can I send you the project files, because this is taking me too much time to figure out, and meanwhile the project is not advancing...

<cite>alper: </cite> Hi Tim,

The forum is a 3rd party product coded in PHP. The team is not good at PHP programming. So it's hard to modify the current. But we are developing a new forum. Our own one. Hence we can do whatever we want.

What is the ETA on this feature? Because I am very interested in it!

Question

After adding a new entity using latest RAD tool, running refresh.bat on angular, i get the following error when trying to run the angular site locally:

ERROR Error: Uncaught (in promise): TypeError: __webpack_require__.e is not a function
TypeError: __webpack_require__.e is not a function
    at webpackAsyncContext (eval at ./node_modules/@angular/common/locales lazy recursive ^\.\/.*\.js$ (main.bundle.js:6), <anonymous>:4199:29)
    at eval (webpack-internal:///./src/root.module.ts:63)
    at ZoneDelegate.invoke (webpack-internal:///./node_modules/zone.js/dist/zone.js:392)
    at Object.onInvoke (webpack-internal:///./node_modules/@angular/core/esm5/core.js:4965)
    at ZoneDelegate.invoke (webpack-internal:///./node_modules/zone.js/dist/zone.js:391)
    at Zone.run (webpack-internal:///./node_modules/zone.js/dist/zone.js:142)
    at eval (webpack-internal:///./node_modules/zone.js/dist/zone.js:844)
    at ZoneDelegate.invokeTask (webpack-internal:///./node_modules/zone.js/dist/zone.js:425)
    at Object.onInvokeTask (webpack-internal:///./node_modules/@angular/core/esm5/core.js:4956)
    at ZoneDelegate.invokeTask (webpack-internal:///./node_modules/zone.js/dist/zone.js:424)
    at webpackAsyncContext (eval at ./node_modules/@angular/common/locales lazy recursive ^\.\/.*\.js$ (main.bundle.js:6), <anonymous>:4199:29)
    at eval (webpack-internal:///./src/root.module.ts:63)
    at ZoneDelegate.invoke (webpack-internal:///./node_modules/zone.js/dist/zone.js:392)
    at Object.onInvoke (webpack-internal:///./node_modules/@angular/core/esm5/core.js:4965)
    at ZoneDelegate.invoke (webpack-internal:///./node_modules/zone.js/dist/zone.js:391)
    at Zone.run (webpack-internal:///./node_modules/zone.js/dist/zone.js:142)
    at eval (webpack-internal:///./node_modules/zone.js/dist/zone.js:844)
    at ZoneDelegate.invokeTask (webpack-internal:///./node_modules/zone.js/dist/zone.js:425)
    at Object.onInvokeTask (webpack-internal:///./node_modules/@angular/core/esm5/core.js:4956)
    at ZoneDelegate.invokeTask (webpack-internal:///./node_modules/zone.js/dist/zone.js:424)
    at resolvePromise (webpack-internal:///./node_modules/zone.js/dist/zone.js:795)
    at eval (webpack-internal:///./node_modules/zone.js/dist/zone.js:847)
    at ZoneDelegate.invokeTask (webpack-internal:///./node_modules/zone.js/dist/zone.js:425)
    at Object.onInvokeTask (webpack-internal:///./node_modules/@angular/core/esm5/core.js:4956)
    at ZoneDelegate.invokeTask (webpack-internal:///./node_modules/zone.js/dist/zone.js:424)
    at Zone.runTask (webpack-internal:///./node_modules/zone.js/dist/zone.js:192)
    at drainMicroTaskQueue (webpack-internal:///./node_modules/zone.js/dist/zone.js:602)
Answer

perfect, done

5.3.0 has only just been released, so you're good for now i guess ;)

Question

Since I'm unable to produce an entity with enum using the RAD tool, is it possible to give me an example on how the Enum is connected to the Angular side?

Answer

oops, I only added it to app.module.ts thought it would trickle down to admin.module.ts

still an Angular Novice :P

thx for quick tip

Question

I'm trying to use ng-select in my Angular app.

I followed the instructions on <a class="postlink" href="https://github.com/ng-select/ng-select">https://github.com/ng-select/ng-select</a>

but when I try to use it on a "create-or-edit-xxx-modal.component" i get this error:

any ideas?

Error: Uncaught (in promise): Error: Template parse errors:
core.js:1448
message:"Uncaught (in promise): Error: Template parse errors:\nCan't bind to 'items' since it isn't a known property of 'ng-select'.\n1. If 'items' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("                       <div class="form-group">\r\n                                        <ng-select [ERROR ->][items]="phases"\r\n                                                    bindLabel="title"\r\n            "): ng:///AdminModule/CreateOrEditPlanModalComponent.html@52:51\n'ng-select' is not a known element:\n1. If 'ng-select' is an Angular component, then verify that it is part of this module.\n2. If 'ng-select' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("\r\n                                <div class="form-group">\r\n                                        [ERROR ->]<ng-select [items]="phases"\r\n              ...
promise:ZoneAwarePromise {__zone_symbol__state: 0, __zone_symbol__value: Error: Template parse errors:\nCan't bind to 'items…}
rejection:Error: Template parse errors:
stack:"Error: Uncaught (in promise): Error: Template parse errors:\nCan't bind to 'items' since it isn't a known property of 'ng-select'.\n1. If 'items' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("                       <div class="form-group">\r\n                                        <ng-select [ERROR ->][items]="phases"\r\n                                                    bindLabel="title"\r\n            "): ng:///AdminModule/CreateOrEditPlanModalComponent.html@52:51\n'ng-select' is not a known element:\n1. If 'ng-select' is an Angular component, then verify that it is part of this module.\n2. If 'ng-select' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("\r\n                                <div class="form-group">\r\n                                        [ERROR ->]<ng-select [items]="phases"\r\n       ...
task:ZoneTask {_zone: Zone, runCount: 0, _zoneDelegates: null, …}
zone:Zone {_properties: Object, _parent: Zone, _name: "angular", …}
__proto__:Object {constructor: , name: "Error", message: "", …}

Ok, a wierd one. I added some extra fields to User object, so people can enter their address,... so I also updated CurrentUserProfileEditDto Added new migration, update-database,...

On the angular side, did a nswag refresh.bat, added the fields to the modal popup for "My Settings".

Now when I save the settings, the extra fields are not saved. When debugging i can see that

save(): void {
        this.saving = true;
        this._profileService.updateCurrentUserProfile(this.user)

this.user contains ALL the fields with the correct data. but still nothing being saved.

when I look at the audit message, I get this for UpdateCurrentUserProfile:

{
    "input": {
        "name": "admin",
        "surname": "admin",
        "userName": "admin",
        "emailAddress": "[email protected]",
        "phoneNumber": "sddsds",
        "isPhoneNumberConfirmed": false,
        "timezone": null,
        "qrCodeSetupImageUrl": "",
        "isGoogleAuthenticatorEnabled": false
    }
}

The extra fields are somehow not in the input Json... I just don't see what i'm doing wrong here.

Showing 21 to 30 of 129 entries