-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue building application #56
Comments
This sounds similar to aurelia/cli#567. Could you show me the steps involved to reproduce this issue? |
Sure. I created a new Aurelia application with the following configuration:
I allowed it to install project dependencies. I followed the instructions here. Install all the controls. Note you dont even need to set anythin up in the UI. Running |
@stuartbloom Using external resources is the cause for the issue. While removing bridge integration changes and hosting the application in IIS, works as expected which needs to be fixed in Aurelia CLI. |
@karthickthangasamy so the question is how can i create a production build that will work when hosted by IIS? |
@stuartbloom Can you please refer the build tasks to bundle for production.? We used |
@karthickthangasamy sure, but I am not sure what I am looking at here, or how it fits in with my application. Can you be a bit more specific please? |
@stuartbloom We can make use of Refer aurelia-bundler guide to getting started with bundling. |
@karthickthangasamy my application uses the cli and npm; will this work in the same way? Thanks |
@karthickthangasamy furthermore, creating an application using au new does not create the build folder and its contents :( |
Take a look at https://github.com/JeroenVinke/aurelia-cli-syncfusion. I did not encounter the errors regarding aurelia-templating-resources, but did get a few 404's because the files of aurelia-syncfusion-bridge were not in the bundle. Adding these resources resolved those 404's. What I did was: Could you please compare your project setup to https://github.com/JeroenVinke/aurelia-cli-syncfusion and report the differences? Thanks |
@JeroenVinke thank you so much. =The main difference between our applications is this registration of the plugin. Yours is If I use your setup all is good, but I want to ensure that I have all components available to me.... Thanks again in advance for any advice |
@stuartbloom Register the plugin as like |
@karthickthangasamy that is what i have done, and I still get the errors. Here are my main.ts and aurelia.json files. It looks cvery similar to me and I still cannot get a deployed app with all the Syncfusion controls registered, even when they are not being used. |
oops, wrong json file. this is it. |
@stuartbloom In the "resources": [
"grid/grid.js",
"grid/column.js",
"chart/chart.js",
"chart/series.js",
"sunburstchart/sunburstchart.js",
"sunburstchart/sunburstlevels.js",
"map/map.js",
"map/layer.js",
"treemap/treemap.js",
"treemap/level.js",
"rangenavigator/rangenavigator.js",
"rangenavigator/rangeseries.js",
"diagram/diagram.js",
"heatmap/heatmap.js",
"heatmaplegend/heatmaplegend.js",
"sparkline/sparkline.js",
"symbolpalette/symbolpalette.js",
"overview/overview.js",
"pager/pager.js",
"bulletgraph/bulletgraph.js",
"bulletgraph/qualitativerange.js",
"circulargauge/circulargauge.js",
"lineargauge/lineargauge.js",
"digitalgauge/digitalgauge.js",
"splitter/splitter.js",
"datepicker/datepicker.js",
"gantt/gantt.js",
"treegrid/treegrid.js",
"treegrid/treegridcolumn.js",
"colorpicker/colorpicker.js",
"dialog/dialog.js",
"scroller/scroller.js",
"barcode/barcode.js",
"pdfviewer/pdfviewer.js",
"numerictextbox/numerictextbox.js",
"currencytextbox/currencytextbox.js",
"percentagetextbox/percentagetextbox.js",
"timepicker/timepicker.js",
"toolbar/toolbar.js",
"menu/menu.js",
"maskedit/maskedit.js",
"treeview/treeview.js",
"kanban/kanban.js",
"kanban/kanbancolumn.js",
"ribbon/ribbon.js",
"spreadsheet/spreadsheet.js",
"spreadsheet/sheet.js",
"rating/rating.js",
"listbox/listbox.js",
"listview/listview.js",
"navigationdrawer/navigationdrawer.js",
"rotator/rotator.js",
"rte/rte.js",
"dropdownlist/dropdownlist.js",
"autocomplete/autocomplete.js",
"radialmenu/radialmenu.js",
"radialmenu/item.js",
"radialslider/radialslider.js",
"tile/tile.js",
"accordion/accordion.js",
"tab/tab.js",
"checkbox/checkbox.js",
"radiobutton/radiobutton.js",
"togglebutton/togglebutton.js",
"splitbutton/splitbutton.js",
"groupbutton/groupbutton.js",
"datetimepicker/datetimepicker.js",
"progressbar/progressbar.js",
"tagcloud/tagcloud.js",
"button/button.js",
"slider/slider.js",
"fileexplorer/fileexplorer.js",
"pivotgrid/pivotgrid.js",
"pivotchart/pivotchart.js",
"pivotgauge/pivotgauge.js",
"pivotschemadesigner/pivotschemadesigner.js",
"pivottreemap/pivottreemap.js",
"waitingpopup/waitingpopup.js",
"reportviewer/reportviewer.js",
"schedule/schedule.js",
"schedule/scheduleresource.js",
"uploadbox/uploadbox.js",
"signature/signature.js",
"tooltip/tooltip.js",
"common/template.js"
] |
should work as well. I am looking into this and will report back |
@JeroenVinke @karthickthangasamy awesome, thanks gents :) |
@JeroenVinke @karthickthangasamy Just an update. So I have added the "**/*.js" to the dependencies, however, I am getting one final error: here is the entry for aurelia-syncfusion-bridge:
Any ideas? Thanks again for your time |
@stuartbloom I am close to solving this error, just need to confirm everything works |
👍 thanks @JeroenVinke so glad it wasn't something I have done :) Or; maybe it was.. |
jquery-validation-unobtrusive was causing an error, which made the bundle invalid. This causes requirejs to fetch everything that's in vendor-bundle from the original source (so it does http requests to node_modules/aurelia-syncfusion-bridge/index.js etc) even though it is in the bundle. The problem with jquery-validation-unobtrusive was that it tried to use
use these two configs for aurelia-syncfusion-bridge and syncfusion-javascript:
I noticed you had aurelia-testing, aurelia-templating resources defined in aurelia.json twice. please check and make sure that they occur only once Fonts/images cannot be bundled using the CLI right now. So you need to copy the fonts/images to the location where syncfusion expects them. This can be done using
In app.js load the following stylesheets:
pushed the resulting app here: https://github.com/JeroenVinke/aurelia-cli-syncfusion |
@karthickthangasamy can you verify that this fixes all issues using a new app and update the instructions accordingly? |
@JeroenVinke SOO very close, thanks. Just complied your application, and I notice this error:
Furthermore, when I add the copy files to my json file, I get a long error message that is in the attachment. Am I still missing something? I have done a diff on out aurelia.json files and they are identical apart from the name? Thanks again Stuart |
The first one is safe to ignore and will be fixed in the CLI at some point. The second one I didn't get. perhaps you could try to create the |
Thats great, thanks @JeroenVinke I thought about that but no joy. For now I will manually copy that folder into the project root. Thanks very much for your help I will leave this issue open until @karthickthangasamy comes back with confirmation and he can close it. |
I am watching this discussion and want to thank @stuartbloom on his persistence and determination to stay with the problem. As you likely know aurelia-syncfusion-bridge is a common effort between our team (Aurelia-UI-Toolkits) and Syncfusion, where we provided the initial design and @karthickthangasamy led the Syncfusion team of developers. So, @JeroenVinke and I think of syncfusion bridge as "our baby", which should explain @JeroenVinke's determination to help you. |
@adriatic not a problem, its a pleasure to deal with folks that really want their code to succeed. I am currently evaluating Syncfusion, and must admit its nice (I have used Kendo in the past).. But what really makes this is the support @JeroenVinke has give; really top rate :) |
That is because you got a world class architect (who created most of the original KendoUI bridge) to act in the support role. Such situation cannot be sustained as we need to move ahead with new projects. I am genuinely expecting that the hundreds of folks that benefited from Jeroen's help will eventually join this project (this includes the other two bridges) and carry on the help to other newcomers. This is the core principles behind OSS - not the popular opinion how OSS developers work full time to make their living, then the second full time to write open source code which is available to everyone for free and then the third full time to support that code 😄 |
@adriatic agreed, maybe one day I will also be able to help :) |
All it takes is to stay connected with the project. Whenever you see someone asking for a solution of a problem you already know how to solve - you are ready to help! |
@stuartbloom @JeroenVinke The @JeroenVinke The steps you have provided works as expected. 👍 |
@karthickthangasamy @JeroenVinke Thats great gents, thank you so much for your time :) |
Hi, and sorry if this is a silly question, but for once googling has not helped :(
I have installed the components and when I run the application with the cli everything works great.
I am now moving to create a deployable build by running
au build --env prod
. Unfortunately I get the following errors in my console:Can someone point me in the right direction?
Thanks in advance
The text was updated successfully, but these errors were encountered: