Compilation error of Egret project Typescript

Source: Internet
Author: User

Today compiled the project, there was a strange error, as follows:

E:\engine\egret-core-3.1.2\tools\lib\typescript\tsclark.js:415311>if(File.name.toLowerCase ()inchSortedMap)1> ^1>rangeerror:maximum Call stack size exceeded1> at Insert (e:\engine\egret-core-3.1.2\tools\lib\typescript\tsclark.js:41531:48)1> at Insert (e:\engine\egret-core-3.1.2\tools\lib\typescript\tsclark.js:41534:21)1> at Insert (e:\engine\egret-core-3.1.2\tools\lib\typescript\tsclark.js:41534:21)1> at Insert (e:\engine\egret-core-3.1.2\tools\lib\typescript\tsclark.js:41534:21)1> at Insert (e:\engine\egret-core-3.1.2\tools\lib\typescript\tsclark.js:41534:21)1> at Insert (e:\engine\egret-core-3.1.2\tools\lib\typescript\tsclark.js:41534:21)1> at Insert (e:\engine\egret-core-3.1.2\tools\lib\typescript\tsclark.js:41534:21)1> at Insert (e:\engine\egret-core-3.1.2\tools\lib\typescript\tsclark.js:41534:21)1> at Insert (e:\engine\egret-core-3.1.2\tools\lib\typescript\tsclark.js:41534:21)1> at Insert (e:\engine\egret-core-3.1.2\tools\lib\typescript\tsclark.js:41534:21)

Because the error did not give detailed information, but probably can see and parse the code file into the dead loop related, and finally can only back up the submission to debug.

Finally found the problem, here is a simple record:

Suppose I have a a.ts:

1 class A {} 2 class C extends B {}

There is also a b.ts:

1 class B extends A {}

This problem occurs when a class inherits from another file, and the class in the file inherits the class from the current file.

Find the problem solved more, you can add a c.ts to put Class C, you can put class B into the a.ts file, only to avoid the above situation can be.

Compilation error of Egret project Typescript

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.