You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
works fine in 2.0.3 but not in 2.1.1. After executing the line the prototype for this.roots should be EntityArray. In 2.1.1 it is just Array. See attached screen shots below. This is causing a problem because a few lines later I call a method defined in EntityArray but I get an error saying the function does not exist:
this.roots.create(initialize,options);
Produces: "this.roots.create is not a function..."
I wasn't able to recreate the error using the playground so I created two branches in my project, one for files generated with 2.0.3 and one generated with 2.1.1. The pertinent file is zeidon.js:
There aren't that many differences in the generated .js file so I'm guessing the problem is in how the constructor for EntityArray is generated. Here's the diff for just the constructor:
TypeScript Version: 2.1.1
The following Typescript line:
works fine in 2.0.3 but not in 2.1.1. After executing the line the prototype for
this.roots
should be EntityArray. In 2.1.1 it is just Array. See attached screen shots below. This is causing a problem because a few lines later I call a method defined in EntityArray but I get an error saying the function does not exist:Produces: "this.roots.create is not a function..."
I wasn't able to recreate the error using the playground so I created two branches in my project, one for files generated with 2.0.3 and one generated with 2.1.1. The pertinent file is zeidon.js:
https://github.com/DeegC/UTC/blob/typescript-2.0.3/angular/app/zeidon.js
https://github.com/DeegC/UTC/blob/typescript-2.1.1/angular/app/zeidon.js
There aren't that many differences in the generated .js file so I'm guessing the problem is in how the constructor for EntityArray is generated. Here's the diff for just the constructor:
If necessary I can give instructions for running my app. Let me know if you need any more info.
2.0.3:
2.1.1:
The text was updated successfully, but these errors were encountered: