Polymorphism problem in javascript

When I call GetComponent(Base) on object with attached Derived script I get null. Derived extends Base but I only get Derived script when explicitly call GetComponent(Derived). Weird problem as this worked in C#.

That is odd. Have you tried the Generic version? GetComponent.()

I tried everything. Then I rewrote it back into C# where this works but now I have problems with compilation order so I will need to put big part of mainly javascript project into Standard Assets folder. Very messy but I don’t see other solution…