问题
I am getting "Uncaught ReferenceError: ___ is not defined" in typescript at runtime even though the class is defined in the same file and exported. Please guide.
Update : I was able to fix this issue by changing the order of exported class. That means I defined ExpressionContext class before it's used. It's a dirty way since it's a generated code and I don't want to touch it. I would like to understand why it's failing.
来源:https://stackoverflow.com/questions/43765160/uncaught-referenceerror-is-not-defined-typescript