2015-12-22 62 views
0

我試圖理解爲什麼這行調用一個錯誤:打字稿錯誤「模塊,類,接口,枚舉,進口或聲明」預計

const value = 20 * 30; 

錯誤TS1008:意外的標記; 'module,class,interface,enum,import or statement'expected。

有什麼想法嗎?

+0

https://github.com/Microsoft/TypeScript/issues/4869 –

+0

您正在使用哪個版本的ECMAScript? 5或6? – Jaco

+0

請添加更多詳細信息 - 即TypeScript版本和提供錯誤的更長的代碼段。 –

回答

相關問題