jQWidgets Forums
jQuery UI Widgets › Forums › Angular › Problem drag&drop grid in PRODUCTION
This topic contains 7 replies, has 2 voices, and was last updated by Martin 6 years, 2 months ago.
-
Author
-
Hi,
I have a problem with the drag&drop of the grid in Production build with Angular 7.
I made a production build of the demo project and placed it on http://www.aboservice.be/dragdroptable/. The grid keeps on loading.
It is working in a development build.
I used the standard demo code from https://stackblitz.com/github/jqwidgets/angular_demos/tree/master/grid/dragdrop/
Other grids are working, but as soon as I implement the drag en drop, it fails. I tested this on different PC’s with different browsers. i always keeps on loading.
How to solve this?
Best regards,
Chris AndriesHello Chris Andries,
This issue is coming because of the use of
createInstance
.
To solve this issue, you can add the following flags to the production build command:
--aot=false --build-optimizer=false
Best Regards,
MartinjQWidgets Team
http://www.jqwidgets.com/Hi,
yes, it works now.
Thanks
best regards
Chris Andries.Hi,
I’m afraid this didn’t solve the problem.
I’m using ‘ng build –prod –aot=false –build-optimizer=false’.Today I tried a new production build, and the error came back. Could this be related to the server?
Best regards,
Chris AndriesHi,
After further testing it seems definitely related to the server configuration.
I have a shared server with two domains on it. It is working on one domain, and it doesn’t work on another domain on the same server!
Anyone who knows which setting could case this behaviour?
Best regards,
Chris AndriesHello Chris Andries,
I would like to suggest you to try setting the project using
jqwidgets-ng
, which is an Angular framework package bundled using the Angular Package Format(APF) and to see, if there will still be an issue.
You can use the following tutorial about Angular CLI & jqwidgets-ng.Best Regards,
MartinjQWidgets Team
http://www.jqwidgets.com/Hi,
Just to confirm that using jqwidgets-ng solved the problem.Best regards,
Chris AndriesHello Chris Andries,
Thank you for the confirmation!
Best Regards,
MartinjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.