Closed justinfagnani closed 12 months ago
Sorry, this isn't a compilation error, it's a runtime error in runtimes that don't have the FormDataEvent
class.
A polyfill for that could be listed as a requirement, but it doesn't seem that useful since the class is only used as a value for runtime type metadata emitted by tsc:
In https://unpkg.com/browse/@material/web@0.1.0-alpha.0/controller/form-controller.js :
__decorate([
bound,
__metadata("design:type", Function),
__metadata("design:paramtypes", [FormDataEvent]),
__metadata("design:returntype", void 0)
], FormController.prototype, "formDataListener", null);```
I'm not sure why emitDecoratorMetadata
is on but unless something very specific is requiring that at runtime, it's just causing bloat and this error could be avoided by setting emitDecoratorMetadata
to false
.
FormDataEvent
isn't found. Is there a missing lib or an ambient declaration not being included?