Closed JeroenVinke closed 8 years ago
+1
I also came across this issue when trying to get aurelia-kendoui-bridge working with the Aurelia CLI.
I think I've figured out what's going on.
I used the following project as the starting point:
https://github.com/JeroenVinke/kendo-aureliacli
The problem I was encountering is that the kendo components (grid, charts, etc.) were not being loaded. I believe they were not even being included in the bundle.
Below is what the bundle section looked like (in aurelia.json):
{
"name": "aurelia-kendoui-bridge",
"path": "../node_modules/aurelia-kendoui-bridge/dist/amd",
"main": "index"
}
To force the Area CLI to include the grid and col components (for example), I added them using the "resources" node:
{
"name": "aurelia-kendoui-bridge",
"path": "../node_modules/aurelia-kendoui-bridge/dist/amd",
"main": "index",
"resources": [
"grid/grid.html",
"grid/grid.js",
"grid/col.js",
"grid/col.html"
]
}
After building the app, I was getting the following error in the web browser:
Mismatched anonymous define()
On examining the contents of vendor-bundle.js, I found that the grid and col resources were actually added twice. One instance was using the actual name of the component, whereas the other instance was not (i.e. calling define() without specifying the name).
Below are what the two instances look like, for the grid component:
define('aurelia-kendoui-bridge/grid/grid',['exports', 'aurelia-dependency-injection', 'aurelia-templating', '../common/widget-base', '../common/decorators', '../common/constants', '../common/options-builder', '../common/template-gatherer', '../pdf/pdf'], function (exports, _aureliaDependencyInjection, _aureliaTemplating, _widgetBase, _decorators, _constants, _optionsBuilder, _templateGatherer, _pdf) {
'use strict';
.................
.................
});
define(['exports', 'aurelia-dependency-injection', 'aurelia-templating', '../common/widget-base', '../common/decorators', '../common/constants', '../common/options-builder', '../common/template-gatherer', '../pdf/pdf'], function (exports, _aureliaDependencyInjection, _aureliaTemplating, _widgetBase, _decorators, _constants, _optionsBuilder, _templateGatherer, _pdf) {
'use strict';
.................
.................
});
I have no idea why this occurs. Once I deleted the 'anonymous' version within vendor-bundle.js, the app ran fine. As a temporary hack, I guess I could automate a process to strip out these instances, but it would be good to figure out what's causing it.
Hope this helps.
Great stuff Jeroen. I applied your changes and was then able to successfully bundle using Aurelia CLI.
Just one thing I noticed. When specifying the resources to include, I needed to explicitly list each of the files (as shown below). I tried using the wildcard syntax (i.e. .js and .html) but the issue was still occurring, that is, the anonymous define() instances still being included in the bundle.
In any case, this works fine for me now. My app has been deployed and it's working well using aurelia-kendoui-bridge bundled within vendor-bundle.js.
BTW, below is how I'm bundling the entire Kendo UI bridge (all wrappers). I just wanted to make sure this 'worst case scenario' was working. I will actually trim this list down as I don't need all these within my app.
{
"name": "aurelia-kendoui-bridge",
"path": "../node_modules/aurelia-kendoui-bridge/dist/amd",
"main": "index",
"resources": [
"autocomplete/autocomplete.html",
"autocomplete/autocomplete.js",
"barcode/barcode.js",
"button/button.js",
"buttongroup/buttongroup.js",
"calendar/calendar.html",
"calendar/calendar.js",
"chart/chart.html",
"chart/chart.js",
"chart/sparkline.html",
"chart/sparkline.js",
"chart/stock.html",
"chart/stock.js",
"chart/treemap.html",
"chart/treemap.js",
"colorpalette/colorpalette.html",
"colorpalette/colorpalette.js",
"colorpicker/colorpicker.js",
"combobox/combobox.html",
"combobox/combobox.js",
"common/bindables.js",
"common/constants.js",
"common/control-properties.js",
"common/decorators.js",
"common/notify-binding-behavior.js",
"common/options-builder.js",
"common/template-compiler.js",
"common/template-gatherer.js",
"common/template.js",
"common/util.js",
"common/widget-base.js",
"contextmenu/contextmenu.js",
"datepicker/datepicker.js",
"datetimepicker/datetimepicker.js",
"diagram/diagram.html",
"diagram/diagram.js",
"draggable/draggable.js",
"drop-target/drop-target-area.js",
"drop-target/drop-target.js",
"dropdownlist/dropdownlist.html",
"dropdownlist/dropdownlist.js",
"editor/editor.js",
"filter-menu/filter-menu.js",
"flatcolorpicker/flatcolorpicker.html",
"flatcolorpicker/flatcolorpicker.js",
"gantt/gantt-col.html",
"gantt/gantt-col.js",
"gantt/gantt.html",
"gantt/gantt.js",
"gauges/linear-gauge.html",
"gauges/linear-gauge.js",
"gauges/radial-gauge.html",
"gauges/radial-gauge.js",
"grid/col.html",
"grid/col.js",
"grid/grid-toolbar.html",
"grid/grid-toolbar.js",
"grid/grid.html",
"grid/grid.js",
"listview/listview.html",
"listview/listview.js",
"map/map.html",
"map/map.js",
"maskedtextbox/maskedtextbox.js",
"menu/menu.js",
"multiselect/multiselect.html",
"multiselect/multiselect.js",
"notification/notification-template.js",
"notification/notification.html",
"notification/notification.js",
"numerictextbox/numerictextbox.js",
"panelbar/panelbar.html",
"panelbar/panelbar.js",
"pdf/pdf.js",
"pivotgrid/pivotconfigurator.html",
"pivotgrid/pivotconfigurator.js",
"pivotgrid/pivotgrid.html",
"pivotgrid/pivotgrid.js",
"popup/popup.js",
"progressbar/progressbar.js",
"qrcode/qrcode.js",
"rangeslider/rangeslider.html",
"rangeslider/rangeslider.js",
"responsivepanel/responsivepanel.js",
"scheduler/scheduler.html",
"scheduler/scheduler.js",
"scrollview/scrollview.html",
"scrollview/scrollview.js",
"slider/slider.js",
"sortable/sortable.js",
"splitter/splitter.js",
"spreadsheet/spreadsheet.html",
"spreadsheet/spreadsheet.js",
"switch/switch.js",
"tabstrip/tabstrip.js",
"timepicker/timepicker.js",
"toolbar/toolbar-item-button.html",
"toolbar/toolbar-item-button.js",
"toolbar/toolbar-item.html",
"toolbar/toolbar-item.js",
"toolbar/toolbar.html",
"toolbar/toolbar.js",
"tooltip/tooltip.js",
"treelist/tree-col.html",
"treelist/tree-col.js",
"treelist/treelist.html",
"treelist/treelist.js",
"treeview/treeview.html",
"treeview/treeview.js",
"upload/upload.html",
"upload/upload.js",
"validator/validator.js",
"valueconverters/valueconverters.js",
"window/window.js"
]
},
"resources": [
[**/*.html"]
]
not working?
I just tried using the globs below. Does not work. The bundle still creates a bunch of anonymous define()'s. Looks like listing the files explicitly is the the only way for now.
{
"name": "aurelia-kendoui-bridge",
"path": "../node_modules/aurelia-kendoui-bridge/dist/amd",
"main": "index",
"resources": [
"**/*.js",
"**/*.html"
]
},
Hmm, not getting the anonymous define
error when using a glob, but I do notice that not all files are in the bundle. I think it's because addAllMatchingResources
isn't given enough time to process all of them (the bridge has many .js and .html files).
I added console.log(file.path)
before this line and noticed that many files were missing:
Starting 'readProjectConfiguration'...
Finished 'readProjectConfiguration'
Starting 'processMarkup'...
Starting 'processCSS'...
Starting 'configureEnvironment'...
Finished 'processCSS'
Finished 'processMarkup'
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\config-builder.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\autocomplete\autocomplete.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\calendar\calendar.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\index.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\chart\chart.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\version.js
Finished 'configureEnvironment'
Starting 'buildJavaScript'...
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\chart\sparkline.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\autocomplete\autocomplete.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\barcode\barcode.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\chart\stock.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\button\button.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\chart\treemap.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\buttongroup\buttongroup.js
Finished 'buildJavaScript'
Starting 'writeBundles'...
Tracing app...
Tracing environment...
Tracing main...
Tracing resources/index...
Tracing app...
Tracing aurelia-kendoui-bridge/config-builder...
Tracing aurelia-kendoui-bridge/index...
Tracing aurelia-kendoui-bridge/autocomplete/autocomplete...
Tracing aurelia-kendoui-bridge/barcode/barcode...
Tracing aurelia-kendoui-bridge/button/button...
Tracing aurelia-kendoui-bridge/buttongroup/buttongroup...
// etc. it only traces the files that have been logged above
After changing this line into setTimeout(() => vfs.src(pattern).pipe(mapStream(subsume)), 10000)
it finds all files:
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\config-builder.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\autocomplete\autocomplete.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\index.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\calendar\calendar.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\version.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\chart\chart.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\autocomplete\autocomplete.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\chart\sparkline.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\barcode\barcode.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\chart\stock.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\button\button.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\chart\treemap.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\buttongroup\buttongroup.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\colorpalette\colorpalette.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\calendar\calendar.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\combobox\combobox.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\chart\chart.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\diagram\diagram.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\chart\sparkline.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\dropdownlist\dropdownlist.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\chart\stock.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\chart\treemap.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\flatcolorpicker\flatcolorpicker.ht
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\colorpalette\colorpalette.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\gantt\gantt-col.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\colorpicker\colorpicker.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\gantt\gantt.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\combobox\combobox.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\common\bindables.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\gauges\linear-gauge.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\common\constants.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\gauges\radial-gauge.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\common\control-properties.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\grid\col.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\common\decorators.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\grid\grid-toolbar.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\common\notify-binding-behavior.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\grid\grid.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\listview\listview.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\common\options-builder.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\common\template-compiler.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\map\map.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\multiselect\multiselect.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\common\template-gatherer.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\notification\notification.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\common\template.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\common\util.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\panelbar\panelbar.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\common\widget-base.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\pivotgrid\pivotconfigurator.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\contextmenu\contextmenu.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\pivotgrid\pivotgrid.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\rangeslider\rangeslider.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\scheduler\scheduler.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\datepicker\datepicker.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\scrollview\scrollview.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\datetimepicker\datetimepicker.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\spreadsheet\spreadsheet.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\diagram\diagram.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\toolbar\toolbar-item-button.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\draggable\draggable.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\toolbar\toolbar-item.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\drop-target\drop-target-area.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\toolbar\toolbar.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\drop-target\drop-target.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\treelist\tree-col.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\dropdownlist\dropdownlist.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\treelist\treelist.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\editor\editor.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\treeview\treeview.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\upload\upload.html
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\filter-menu\filter-menu.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\flatcolorpicker\flatcolorpicker.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\gantt\gantt-col.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\gantt\gantt.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\gauges\linear-gauge.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\gauges\radial-gauge.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\grid\col.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\grid\grid-toolbar.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\grid\grid.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\listview\listview.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\map\map.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\maskedtextbox\maskedtextbox.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\menu\menu.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\multiselect\multiselect.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\notification\notification-template
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\notification\notification.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\numerictextbox\numerictextbox.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\panelbar\panelbar.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\pdf\pdf.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\pivotgrid\pivotconfigurator.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\pivotgrid\pivotgrid.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\popup\popup.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\progressbar\progressbar.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\qrcode\qrcode.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\rangeslider\rangeslider.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\responsivepanel\responsivepanel.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\scheduler\scheduler.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\scrollview\scrollview.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\slider\slider.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\sortable\sortable.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\splitter\splitter.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\spreadsheet\spreadsheet.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\switch\switch.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\tabstrip\tabstrip.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\timepicker\timepicker.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\toolbar\toolbar-item-button.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\toolbar\toolbar-item.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\toolbar\toolbar.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\tooltip\tooltip.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\treelist\tree-col.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\treelist\treelist.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\treeview\treeview.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\upload\upload.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\validator\validator.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\valueconverters\valueconverters.js
C:\Development\scaffolded\cli-issue-270\node_modules\aurelia-kendoui-bridge\dist\amd\window\window.js
But of course they are not in the bundle because of the delay
I'm submitting a bug report
Please tell us about your environment:
Node Version: 6.3.0
NPM Version: 3.10.5
Current behavior: When using the
resources
property of a bundle config in aurelia.json the following error is thrown:Mismatched anonymous define
. full errorWhen I remove the resources property the error is gone, but the resources are not in the bundle
Expected/desired behavior:
add the following to the vendor-bundle config in aurelia.json:
update app.html