InversifyJs仅在IE中出错

时间:2017-01-14 14:12:22

标签: internet-explorer typescript webpack inversifyjs

我使用Typescript和webpack来创建一个Web应用程序。最近我切换了inversifyJs DI库。

仅在IE(11)上我收到错误: Missing required @injectable annotation in: MyClassName

该类已注释,它不会扩展任何其他类。我还包括SymbolReflect-metadata polyfills。 Firefox和Chrome正确处理所有内容。 InversifyJs是否与IE一起工作,如果是,这可能是什么原因导致这种行为?

1 个答案:

答案 0 :(得分:1)

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