我試圖用Google的Closure編譯器編譯ExtJS 6.2.0。還有像ExtJS的源代碼以下注釋:Google Closure編譯器不識別類型註釋
* @param {Ext.data.TreeModel[]} records An array of records.
關閉的錯誤了,因爲它不承認這個類型的註釋。錯誤如下所示:
extjs-6.2.0/build/ext-all-debug.js:248792: ERROR - Bad type annotation. expecting a variable name in a @param tag. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.
* @param {Ext.data.TreeModel[]} data.records An Array of Models representing the
我不一定會在提供的URL中看到解決方案。在ExtJS中也有很多這樣的類型,我猜編譯器會遇到問題。
這裏有一個簡單的解決方法嗎?我可以從彙編中刪除--jscomp_error checkTypes
,但我寧願按照正確的方式來執行此操作。
您要鏈接的線程似乎不是有效的鏈接。 – randombits
我修改了鏈接,現在應該可以工作。 – owler