javascript - Aurelia 的 Jspm SFX bundle

标签 javascript aurelia

理论上可行吗? 我尝试过使用 jspm 0.16 和 0.17 以及 jspm build 命令。 bundle 已生成,但在 aurelia-loader-default 中加载失败,并出现错误

aurelia-loader-default.js:160 Uncaught (in promise) TypeError: require is not a function
    at DefaultLoader.loadModule (http://localhost:3000/dist/bundle.js:1466:9)
    at DefaultLoader.loadModule (http://localhost:3000/dist/bundle.js:1465:14)
    at http://localhost:3000/dist/bundle.js:554:25DefaultLoader.loadModule @ aurelia-loader-default.js:160DefaultLoader.loadModule @ aurelia-loader-default.js:157(anonymous function) @ aurelia-bootstrapper.js:85

最佳答案

这是可能的。跟踪所需的增强here

关于javascript - Aurelia 的 Jspm SFX bundle ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40500654/

相关文章:

javascript - 解析dom元素的更有效方法?

javascript - 对于in,如何限制输出?

javascript - ajax在发送之前和完成之后加载模式

javascript - 如何跟踪 aurelia 中表单对象的更改以激活恢复按钮

gulp - Aurelia CLI 和 gulp 通知 (Windows)

javascript - 向 aurelia 项目添加新的 JS 类和模板

javascript - 当innerhtml本身已经动态生成时,如何绑定(bind)到html属性?

javascript - 为什么php ajax没有给出任何响应?

requirejs - 无法在捆绑的 aurelia 应用程序的单元测试中使用帮助程序类。 RequireJS 配置?

javascript - 循环 JSON 响应给出未定义