【发布时间】:2016-12-18 11:05:49
【问题描述】:
我用ember-engines 0.4.0, ember-cli 2.10.0 创建了一个独立的可路由引擎。
如果我调用引擎索引路由 (/thingy/),我会收到此错误:
Assertion Failed: Asset manifest does not list any available bundles.
消费应用router.js:
this.mount('thingy-frontend', { as: 'thingy', path: 'thingy' });
引擎应用routes.js:
this.route('index', { path: '/' });
引擎是通过使用 ember-cli 应用程序的 node_modules/ 目录中的符号链接“安装”的。 (See here why)。
只是为了好玩,我尝试更改路线以测试是否可行...
消费应用router.js:
this.mount('thingy-frontend', { as: 'thingy' });
引擎应用routes.js:
this.route('index', { path: 'new' });
我打电话给/thingy/new,得到了UnrecognizedURLError。或者,如果我调用根路径,我会得到一个Assertion Failed: Asset manifest does not list any available bundles.
此外,如果我在引擎 index.js 中放置 console.log('...');,我将看不到任何输出。好像根本没有加载。
该设置的灵感来自官方 README 和官方示例存储库。
知道如何修复此 Ember 引擎设置吗?
你可以在 GitHub 上找到 repos:
【问题讨论】:
标签: javascript node.js ember.js ember-engines