Uncaught ReferenceError: ___ is not defined - typescript

有些话、适合烂在心里 提交于 2020-01-25 20:53:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!