2016-09-29 71 views
0

使用神奇的Breeze Typescript Entity Generator tool但一直得到错误微风打字稿工具

Error: Unable to locate the default implementation of the 'modelLibrary' interface. Possible options are 'ko', 'backingStore' or 'backbone'. See the breeze.config.initializeAdapterInstances method. 

错误是在这一行TSGEN-core.js发生:

var metadataStore = breeze.MetadataStore.importMetadata(metadata); 

我相信这是抓住了元数据精细。看起来我应该使用interfaceAdapter配置breeze,但在使用它导入此工具的importMetadata之前,repo中的示例没有在微风中配置任何东西。

回答

0

我们忘了更新tsgen.js为breeze-client的最新版本,它使用breeze.base.debug.js作为默认的js文件而不是breeze.debug.js。 breeze.debug.js文件具有默认的modelLibrary,但breeze.base.debug.js不包含。

我已经更新tsgen.js以使用breeze.debug.js。请获取最新信息并重试。