jQWidgets Forums

jQuery UI Widgets Forums Angular Error with build jqxGrid / jqxTabs

This topic contains 4 replies, has 2 voices, and was last updated by  Michel Ramel 6 years, 11 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Error with build jqxGrid / jqxTabs #100778

    Michel Ramel
    Participant

    Hi,

    Angular
    I have a problem with the build version of jqxGrid Details and jqxTabs.
    I made the test with the example from the website. It works fine in developpement mode.
    The build process is ok.
    But the test with the build version shows an error :

    main.c822e24869a0be3559bd.js:1 ERROR TypeError: e(…)[n] is not a function
    at Object.createInstance (main.c822e24869a0be3559bd.js:1)

    Could you help me please ?

    Many thanks

    Michel RAmel

    My configuration :

    jqwidgets-ver5.6.0

    Angular CLI: 6.0.7
    Node: 8.11.2
    OS: win32 x64
    Angular: 6.0.3
    … animations, common, compiler, compiler-cli, core, forms
    … http, language-service, platform-browser
    … platform-browser-dynamic, router

    Package Version
    ———————————————————–
    @angular-devkit/architect 0.6.7
    @angular-devkit/build-angular 0.6.7
    @angular-devkit/build-optimizer 0.6.7
    @angular-devkit/core 0.6.7
    @angular-devkit/schematics 0.6.7
    @angular/cli 6.0.7
    @ngtools/webpack 6.0.7
    @schematics/angular 0.6.7
    @schematics/update 0.6.7
    rxjs 6.2.0
    typescript 2.7.2
    webpack 4.8.3


    Martin
    Participant

    Hello Michel Ramel,

    What command do you use for building your application?

    This can have something to do with the AOT compilation.
    You can try using the command “ng build –base-href ./ –prod –aot=false –build-optimizer=false”

    Best Regards,
    Martin

    jQWidgets Team
    http://www.jqwidgets.com/

    Error with build jqxGrid / jqxTabs #100850

    Michel Ramel
    Participant

    Hi Martin

    I used this command for building :

    ng build –base-href=/xxxx/ –prod

    I try using this :

    ng build –base-href=/stylique/ –prod –aot=false –build-optimizer=false

    and I get this error :

    ERROR in No NgModule metadata found for ‘AppModule’.

    If I try whithout –aot=false, compilation ends normally but I have the error

    ERROR TypeError: e(…)[n] is not a function
    at Object.createInstance

    Best regards

    Michel


    Martin
    Participant

    Hello Michel,

    You should add "src/app/app.module.ts" in the ‘files’ in tsconfig.json before the files of the other widgets.

    "files": [
        "src/app/app.module.ts",
        "node_modules/jqwidgets-scripts/jqwidgets-ts/angular_jqxbargauge.ts"
      ]

    This should remove the error for NgModule.

    Best Regards,
    Martin

    jQWidgets Team
    http://www.jqwidgets.com/


    Michel Ramel
    Participant

    Hello Martin,

    It’s ok now

    Many thanks

    Michel

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.