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

Activities of "codenewa"

I've sent the link to <a href="mailto:[email protected]">[email protected]</a>

It shows the same error message. Is there anything else I can try?

I have deployed the angular 2 app to my test environment. But I'm getting js errors after deployment.

This is what I see on Chrome console when I load the application.

JQMIGRATE: Migrate is installed, version 3.0.0
inline.1523ecb….bundle.js:1 Uncaught TypeError: Cannot read property 'call' of undefined
    at r (inline.1523ecb….bundle.js:1)
    at Object.542 (main.da73a68….bundle.js:9)
    at r (inline.1523ecb….bundle.js:1)
    at Object.707 (main.da73a68….bundle.js:11)
    at r (inline.1523ecb….bundle.js:1)
    at Object.1195 (main.da73a68….bundle.js:1)
    at r (inline.1523ecb….bundle.js:1)
    at window.webpackJsonp (inline.1523ecb….bundle.js:1)
    at main.da73a68….bundle.js:1

A similar error occurred a couple of days of ago but it went away after I rebuilt the angular app a couple of times. From my build logs, I am seeing the following warnings when yarn is installing the dependencies.

yarn -v
yarn install v0.20.3
[1/4] Resolving packages...
[2/4] Fetching packages...
warning [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "@ngtools/[email protected]" has unmet peer dependency "@angular/tsc-wrapped@^0.5.0".
[4/4] Building fresh packages...
Done in 63.21s.
yarn
yarn install v0.20.3
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.86s.
npm run build2prod
> [email protected] build2prod C:\projects\iemergent-mms-hblv0\angular
> ng build -prod
  0% compilin

However, I don't see any difference in the warnings between a working build and the current failing build.

I currently use appveyor to run the build. Node version is 6.10.0 Yarn version is 0.20.3

I know that this is not a lot to start with. Please let me know if you need any more info.

Turns out my input object was not well formed. It had missing properties which was causing the error. It's fixed now. Sorry about this.

Hello,

I created my first service without any hiccups. But when working on the second service, I'm getting issues with the POST methods. Service Method:

[AbpAuthorize(AppPermissions.Pages_Administration_Tenant_AttributeSettings)]
    public class AttributesAppService : MMSAppServiceBase, IAttributesAppService
    {
...
[AbpAuthorize(AppPermissions.Pages_Administration_Tenant_AttributeSettings_Create_Update)]
        public async Task SaveAttributeSettings(SaveAttributeSettingInput input)
        {
            var attributeValue = input.MapTo<Attribute>();
            attributeValue.TenantId = AbpSession.TenantId;
            if (input.Id == 0)
...

Service-proxies.ts

/**
     * @return Success
     */
    saveAttributeSettings(input: SaveAttributeSettingInput): Observable<void> {
        let url_ = this.baseUrl + "/api/services/app/Attributes/SaveAttributeSettings";

        const content_ = JSON.stringify(input ? input.toJS() : null);
        
        return this.http.request(url_, {
            body: content_,
            method: "post",
            headers: new Headers({
                "Content-Type": "application/json; charset=UTF-8", 
				"Accept": "application/json; charset=UTF-8"
            })
        }).map((response) => {
...

component.ts

...
   save(): void {
        this.saving = true;
        this._svc.saveAttributeSettings(**this.attr**)
            .finally(() => this.saving = false)
            .subscribe(() => {
                this.notify.info('Saved Successfully');
                this.close();
                this.modalSave.emit(this.attr);
            });
    }
...

But when it runs it gives me the following error:

{result: null, targetUrl: null, success: false,…}
__abp
:
true
error
:
{code: 0, message: "Your request is not valid!",…}
code
:
0
details
:
"The following errors were detected during validation.
↵ - input is null!
↵"
message
:
"Your request is not valid!"
validationErrors
:
[{message: "input is null!", members: ["input"]}]
0
:
{message: "input is null!", members: ["input"]}
members
:
["input"]
message
:
"input is null!"
result
:
null
success
:
false
targetUrl
:
null
unAuthorizedRequest
:
false

Thank you for your help.

Showing 21 to 25 of 25 entries