Closed elitastic closed 3 years ago
@elitastic I'll close this for now, since it should work with latest master already. Please feel free to open if your tests gets a different result.
Unfortunately it's still not working with latest master. Still the same problem with @autoinject and native elements when transpileOnly is enabled in ts-loader.
Could you please reopen this issue (see my previous answer)?
I have never successfully gotten autoinject to work with interfaces because interfaces are compiled out by TS. In this case, I would simply use @inject(Element).
I'm submitting a bug report
Current behavior: "Element" is not injected correctly in IE 11 when using
@autoinject
.There's no problem at all in Chrome/Firefox (unfortunately we must still support IE 11).
There are two available workarounds to fix it in IE 11:
@inject(Element)
instead of@autoinject()
transpileOnly
in ts-loaderWhat is the expected behavior? Should work in IE 11 without enabling any workarounds
Repro webpack.config.js
main.ts
app.ts
app.html