2016-09-29 135 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。請獲取最新信息並重試。