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
Expected behavior: /// <reference path="./baseRenderable.ts" /> defined in polygon.ts should make sure that baseRenderable.ts is appended to the output file BEFORE polygon.ts.
Actual behavior: polygon.ts is appended to the output file before baseRenderable.ts, which results in the ever so annoying Uncaught TypeError: Cannot read property 'prototype' of undefined error.
Here is a part of the tsc output generated by the tsconfig.json entry "listFiles" set to true:
I'm aware that this issue is related to #5207. However to my understanding my code should work, according to the documentation about How do I control file ordering in combined output. To me it seems that the /// <reference path="..." /> entries in my code are completely ignored because the resulting output file is identical with and without the /// <reference path="..." /> entries in the code files.
The text was updated successfully, but these errors were encountered:
I would not use /// <reference path="..." /> for this specific reason. i would instead use files or include in your tsconfig.json. a flat list is much easier to debug than a graph of links between files.
@mhegazy Fortunately that wasn't the issue after all, I had accidentally created a situation where A requires B and B requires A. Unfortunately it too way too long to notice.
TypeScript Version: 2.2.0-dev.20161120
Code
Full source code can be found at Janne252/jannengine
Expected behavior:
/// <reference path="./baseRenderable.ts" />
defined in polygon.ts should make sure that baseRenderable.ts is appended to the output file BEFORE polygon.ts.Actual behavior:
polygon.ts is appended to the output file before baseRenderable.ts, which results in the ever so annoying
Uncaught TypeError: Cannot read property 'prototype' of undefined
error.Here is a part of the tsc output generated by the tsconfig.json entry
"listFiles"
set totrue
:As you can see, polygon.ts is added before baseRenderable.ts even though polygon.ts defines baseRenderable.ts as its dependency.
An example of the generated
.js
file can be found in janne252/jannengine/js/combined_sampleI'm aware that this issue is related to #5207. However to my understanding my code should work, according to the documentation about How do I control file ordering in combined output. To me it seems that the
/// <reference path="..." />
entries in my code are completely ignored because the resulting output file is identical with and without the/// <reference path="..." />
entries in the code files.The text was updated successfully, but these errors were encountered: