wizdm
wizdm copied to clipboard
Project not build because Stripe module error
In a fresh download of the project, found the following errors:
Error: stripe/src/lib/elements/element.directive.ts:66:13 - error TS2349: This expression is not callable. Each member of the union type '{ (eventType: "change", handler: (event: StripeCardElementChangeEvent) => any): StripeCardElement; (eventType: "ready", handler: (event: { ...; }) => any): StripeCardElement; (eventType: "focus", handle r: (event: { ...; }) => any): StripeCardElement; (eventType: "blur", handler: (event: { ...; }) => any): StripeCard...' has signatures, but none of those signatures are compatible with each other.
66 elm.on('ready', () => { this.readyChange.emit(this._ready = true); }); ~~
Error: stripe/src/lib/elements/element.directive.ts:67:13 - error TS2349: This expression is not callable. Each member of the union type '{ (eventType: "change", handler: (event: StripeCardElementChangeEvent) => any): StripeCardElement; (eventType: "ready", handler: (event: { ...; }) => any): StripeCardElement; (eventType: "focus", handle r: (event: { ...; }) => any): StripeCardElement; (eventType: "blur", handler: (event: { ...; }) => any): StripeCard...' has signatures, but none of those signatures are compatible with each other.
67 elm.on('focus', () => { this._focused = true; this.focusChange.emit(); }); ~~
Error: stripe/src/lib/elements/element.directive.ts:68:13 - error TS2349: This expression is not callable. Each member of the union type '{ (eventType: "change", handler: (event: StripeCardElementChangeEvent) => any): StripeCardElement; (eventType: "ready", handler: (event: { ...; }) => any): StripeCardElement; (eventType: "focus", handle r: (event: { ...; }) => any): StripeCardElement; (eventType: "blur", handler: (event: { ...; }) => any): StripeCard...' has signatures, but none of those signatures are compatible with each other.
68 elm.on('blur', () => { this._focused = false; this.blurChange.emit(); }); ~~
This block the build of the projects