CocosCreator无法打开项目

996411408
Tue, 22 Aug 2017 02:01:30 +0000

我试了下装回coco5.2 发现提示变了，我都切换快一周了出这种问题

ParseError: The keyword 'interface' is reserved
    at Readable.<anonymous> (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/page/compile-worker.js:1:3170)
    at emitOne (events.js:101:20)
    at Readable.emit (events.js:188:7)
    at Labeled.<anonymous> (/Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/read-only-stream/index.js:28:44)
    at emitOne (events.js:96:13)
    at Labeled.emit (events.js:188:7)
    at Labeled.<anonymous> (/Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/stream-splicer/index.js:130:18)
    at emitOne (events.js:101:20)
    at Labeled.emit (events.js:188:7)
    at DestroyableTransform.<anonymous> (/Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/stream-splicer/index.js:130:18)
    at /Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/compiler.js:1:1092
    at /Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/compiler.js:1:492
    at BrowserWindow.<anonymous> (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/compiler.js:1:2305)
    at BrowserWindow.g (events.js:286:16)
    at emitOne (events.js:101:20)
    at BrowserWindow.emit (events.js:188:7)

原来时我在一个文件里单独定义一个接口导致的，原先的代码是

export default interface ITile {
    /**
	* 是否为障碍
	* @param startX	始点X坐标
	* @param startY	始点Y坐标
	* @param endX		终点X坐标
	* @param endY		终点Y坐标
	* @return			0为障碍 1为通路
	*/
    isBlock(startX: number,startY: number,endX: number,endY: number): number;

}

现在我只能把这个接口，放到实现它的那个类的文件中了，尼玛文档地方什么的也没提到，太坑了

阅读整个主题