考虑到此处描述的更改Aurelia Dialog 重大更改,我们正在尝试导出基于 JSPM 和 TypeScript 的已建立项目,以便可以在没有此错误的情况下启动它:
system.src.js:1612 Uncaught (in promise) TypeError: t.substr is not a function
at _ (system.src.js:1612)
at a.<anonymous> (system.src.js:2475)
at a.normalizeSync (system.src.js:4457)
at system.src.js:3302
at eval (aurelia-b769ffb7bc.js:1)
at new Promise (<anonymous>)
at Object.ux-dialog (aurelia-b769ffb7bc.js:1)
at eval (aurelia-b769ffb7bc.js:1)
at Array.map (<anonymous>)
at a._apply (aurelia-b769ffb7bc.js:1)
_ @ system.src.js:1612
这是我们当前的配置:packages.json:
"jspm": {
"dependencies": {
"aurelia-dialog": "npm:aurelia-dialog@^2.0.0-rc.2",
}
}
捆绑包.js:
"dist/aurelia": {
"includes": [
...
"aurelia-dialog",
...
],
"options": {
"inject": true,
"minify": true,
"depCache": true,
"rev": true
}
}
在 config.js 中:
"aurelia-fb495f2376.js": [
...
"npm:aurelia-dialog@2.0.0-rc.3/aurelia-dialog.js",
...
"npm:aurelia-dialog@2.0.0-rc.3/renderer.js",
....
]
只是添加没有帮助"aurelia-dialog/resources/*.js"
,bundles.js
所以我想应该在 packages.json 中完成?
我们应该在哪里以及如何准确地明确包含所需的resources
构建依赖项,以便可以正确地捆绑和导出它?