Skip to content

Build: Property X does not exist on type Y. #5549

@bertrand-alain

Description

@bertrand-alain

Randomly during build, the typescript compiler will issue such errors while the class does actually have the property set as static:

class MyClass
{
    static MyProp:string="Hello";
    static MyFunc()
    {
       console.log(MyClass.MyProp);
    }
}

As during the next build it may work, this is certainly a compiler bug.

Using Visual Studio 2015 -> TypeScript for MS VS 1.6.3.0

Metadata

Metadata

Assignees

Labels

DuplicateAn existing issue was already created

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions