Browse by Tags
Sorry, but there are no more tags available to filter with.
-
【茶包射手日記】VS2017 錯誤清單出現 TypeScript 版本相關錯誤卻可編譯
-
之前處理過 VS2017 更新導致 TypeScript 出現大量 is not assignable to 錯誤 問題,若暫時不打算改寫 TypeScript 升級 2.4+,確保專案 TypeScript 版本設定維持在舊版即可。但實際使用發現有個困擾:雖然編輯及使用都正常,但 VS2017 的錯誤清單視窗(Error List)冒出大量 is not assignable to 錯誤,一片紅通通很礙眼,其他程式有錯要查訊息如同大海撈針。 研究一陣子不得其解,不經意看到最下方兩則 Warning...
-
【茶包射手日記】TypeScript 出現大量 is not assignable to 錯誤
-
同事報案,在沒動 TypeScript 的情況下,專案爆出大量 TypeScript 錯誤導無法編譯。 錯誤訊息滿是各式各樣的 A is not assignable to parameter of type B。 目擊證人指出,問題出現在 VS2017 安裝更新後,VS 更新成為最大嫌疑犯。深入調查後案情逆轉,發現 TypeScript 2.3 版本被移除,專案屬性設定 TypeScript 原指定 2.3 版,目前顯示為 2.3 (Unavailable)。 延伸閱讀: 檢查 TypeScript...
-
TIPS-VS2017 無法編譯新版 TypeScript 定義檔
-
以下為在 Visual Studio 2017 使用 TypeScript 定義檔可能出現的狀況。由 NuGet 或 Github 取得 TypeScript 定義檔,卻噴出大量編譯錯誤無法使用: Visual Studio 2017 已更新至 9/19 才發行的 15.3.5 版本,TypeScript for Microsoft Visual Studio 也被一併更新至 15.3.10723.1: 前幾天剛好聽同事提起 VS2017 與 TypeScript 可各自更新(參考: Updating...
-
VS2017 Angular TypeScript 定義檔編譯錯誤
-
改用 Visual Studio 2017 好一陣子,維護修改 TypeScrpt + Angular 專案都沒什麼問題。這兩天新起一個 ASP.NET 網站專案想寫個簡單的 Coding4Fun SPA,用 NuGet 裝好 jQuery、Angluar,順手也裝上 jQuery 與 Angular 的 TypeScript 定義檔 ,發現 Angular 定義檔冒出數十個 Cannot find name 'IPromise'、Namesapce 'angular'...