You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const host = document.createElement('ns-app'); // HTMLElement
const myApp = renderComponent(AppComponent, { host }); // Host expects RElement|string
// RElement should compatible with HTMLElement
// but now fails with the following error
🔥 Exception or Error
Type 'HTMLElement' is not assignable to type 'string | RElement'.
Type 'HTMLElement' is not assignable to type 'RElement'.
Types of property 'addEventListener' are incompatible.
Type '{ <K extends "error" | "click" | "input" | "keyup" | "keydown" | "focus" | "progress" | "select" | "scroll" | "blur" | "fullscreenchange" | "fullscreenerror" | "abort" | "animationcancel" | ... 74 more ... | "paste">(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEv...' is not assignable to type '(type: string, listener: EventListener, useCapture?: boolean) => void'.
Types of parameters 'listener' and 'listener' are incompatible.
Type 'EventListener' is not assignable to type '(this: HTMLElement, ev: any) => any'.
Type 'EventListener' provides no match for the signature '(this: HTMLElement, ev: any): any'.
🌍 Your Environment
Angular Version:
8.0.0-beta.11
Anything else relevant?
This started with 8.0.0-beta.8 which activated dts bundling for the core package (see 7b0e9ed)
As core has its own EventListener (see
cexbrayat
changed the title
core.d.ts export its own EventListener (dts bundling issue with 8.0.0-beta.8)
core.d.ts exports its own EventListener (dts bundling issue with 8.0.0-beta.8)
Apr 10, 2019
🐞 bug report
Affected Package
The issue is caused by package @angular/core
Is this a regression?
Yes,
8.0.0-beta.7
was fine, this issue started in8.0.0-beta.8
and is still present in8.0.0-beta.11
.Description
core.d.ts
now exports its ownEventListener
(see https://cdn.jsdelivr.net/npm/@angular/core@8.0.0-beta.8/core.d.ts) which triggers compilation errors in some cases.🔬 Minimal Reproduction
🔥 Exception or Error
🌍 Your Environment
Angular Version:
Anything else relevant?
This started with
8.0.0-beta.8
which activated dts bundling for the core package (see 7b0e9ed)As
core
has its ownEventListener
(seeangular/packages/core/src/debug/debug_node.ts
Line 24 in 303eae9
core.d.ts
.cc @alan-agius4 as we talked about it on Slack
The text was updated successfully, but these errors were encountered: