I'm using version 0.20.5
in pre 0.20 version I have following config for kendo:
http://docs.telerik.com/kendo-ui/third-party/systemjs
System.config({
paths: {
'kendo.*': "lib/kendo/kendo.*.js"
}
})
and when I imported
System.register(["jquery", "app", "kendo.dropdownlist.min"], function
all worked and kendo.dropdownlist.min was searched in proper folder.
now it searched in root.
Wildcard paths were deprecated in SystemJS 0.20. Unfortunately this dynamic paths approach is no longer supported, instead you would need to use a separator:
System.config({
paths: {
'kendo/': 'lib/kendo/'
}
});
with System.register(['kendo/kendo.dropdownlist.min.js']).
Thanks for answer, that will require quite a lot of modules to change for me. It's a pity that useful feature was deprecated.
And this solution is not working for me, because kendo resolves its paths without "kendo/" so I need register names without prefix. Any idea how to workaround this? So I can register with "kendo/" but any kendo internal dependencies won't be resolved.
Configuring each module manually (default extension and path will be pain) it is 100+ files.
I wonder if it would be possible to workaround the issue by overwriting locate function.
I keep my code in a separate src folder under baseURL and in 0.20 will be forced to always use src in imports... Prior I could do this
"paths": {
"*": "src/*"
}
Continuing on the above theme:
I was using the form
paths:{
"components/*":"app/components/*/index"
}
Now if I am to follow the systemjs 0.20 method, it seems I will have to declare
paths:{
"components/":"app/components/"
}
and either rewrite all imports which previously were
import 'component/thing'
as
import 'component/thing/index.js'
or
create a file component/thing.js which just the line
import `component/thing/index.js`
Is there a better way to deal with this?
@CxRes I'm also dealing with almost identical problem. Did you solve it?
for me solution was "simple" map every file in config. It is aout 100 lines but works.
Most helpful comment
Thanks for answer, that will require quite a lot of modules to change for me. It's a pity that useful feature was deprecated.
And this solution is not working for me, because kendo resolves its paths without "kendo/" so I need register names without prefix. Any idea how to workaround this? So I can register with "kendo/" but any kendo internal dependencies won't be resolved.
Configuring each module manually (default extension and path will be pain) it is 100+ files.