Uncaught TypeError: cls is not a constructor

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Uncaught TypeError: cls is not a constructor

Serkan Taş
What may be te reason for the exception ?







Reply | Threaded
Open this post in threaded view
|

Re: Uncaught TypeError: cls is not a constructor

Alex Harui-2

Two common reasons:

 

  1. The missing class hasn’t been loaded because this MXML somehow got interpreted earlier than expected (static initializer or something like that)
  2. The missing class threw an exception while loading.  There will be an exception in the console output before this exception.  In general we don’t want bug reports about exceptions that follow other exceptions.

 

There might be other scenarios.  It doesn’t have to be one of these two.

 

-Alex

 

From: Serkan Taş <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, February 27, 2020 at 5:35 AM
To: "[hidden email]" <[hidden email]>
Subject: Uncaught TypeError: cls is not a constructor

 

What may be te reason for the exception ?







Reply | Threaded
Open this post in threaded view
|

Re: Uncaught TypeError: cls is not a constructor

Serkan Taş
Alex,

1. I am going to try to find out
2. This is the one only the exception thrown through console.

Thanks,
Serkan

27.02.2020 18:56 tarihinde Alex Harui yazdı:

Two common reasons:

 

  1. The missing class hasn’t been loaded because this MXML somehow got interpreted earlier than expected (static initializer or something like that)
  2. The missing class threw an exception while loading.  There will be an exception in the console output before this exception.  In general we don’t want bug reports about exceptions that follow other exceptions.

 

There might be other scenarios.  It doesn’t have to be one of these two.

 

-Alex

 

From: Serkan Taş [hidden email]
Reply-To: [hidden email] [hidden email]
Date: Thursday, February 27, 2020 at 5:35 AM
To: [hidden email] [hidden email]
Subject: Uncaught TypeError: cls is not a constructor

 

What may be te reason for the exception ?