jQWidgets Forums
jQuery UI Widgets › Forums › Angular › Error with build jqxGrid / jqxTabs
Tagged: Angular 6, jqxgrid detail
This topic contains 4 replies, has 2 voices, and was last updated by Michel Ramel 6 years, 11 months ago.
-
Author
-
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, routerPackage 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.3Hello 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,
MartinjQWidgets Team
http://www.jqwidgets.com/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.createInstanceBest regards
Michel
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,
MartinjQWidgets Team
http://www.jqwidgets.com/Hello Martin,
It’s ok now
Many thanks
Michel
-
AuthorPosts
You must be logged in to reply to this topic.