仅在 IE 中出现 InversifyJs 错误

InversifyJs error only in IE

我正在将 Typescript 与 webpack 结合使用来创建 Web 应用程序。最近我切换了 do inversifyJs DI 库。

仅在 IE (11) 上出现错误: Missing required @injectable annotation in: MyClassName

class 被注释,它不扩展任何其他 class。我还包含了 SymbolReflect-metadata polyfill。 Firefox 和 Chrome 正确处理一切。 inversifyJs 是否与 IE 一起工作,如果是,这种行为的原因是什么?

我遇到了同样的问题,将 "es6-shim" 脚本 https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.35.1/es6-shim.js 添加到 html 页面并解决了问题。一旦我知道这是如何解决问题的,我会更新