Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Type 'TargetedPictureInPictureEvent<Target>' does not satisfy the constraint 'TargetedEvent<EventTarget, Event>' #1004

Open
No1e opened this issue Sep 29, 2023 · 0 comments

Comments

@No1e
Copy link

No1e commented Sep 29, 2023

I just wanted to try algolia search, so I installed angular-instantsearch
npm install algoliasearch angular-instantsearch

tried to compile and got the following errors:

Error: node_modules/preact/src/jsx.d.ts:1471:25 - error TS2552: Cannot find name 'PictureInPictureEvent'. Did you mean 'PictureInPictureEventHandler'?
1471 TargetedEvent<Target, PictureInPictureEvent>;

Error: node_modules/preact/src/jsx.d.ts:1516:16 - error TS2344: Type 'TargetedPictureInPictureEvent' does not satisfy the constraint 'TargetedEvent<EventTarget, Event>'.
Type 'TargetedPictureInPictureEvent' is missing the following properties from type 'Omit<Event, "currentTarget">': type, target, bubbles, cancelBubble, and 17 more.

1516 EventHandler<TargetedPictureInPictureEvent>;

To Reproduce 🔍

Steps to reproduce the behavior:

  1. npm install algoliasearch angular-instantsearch
  2. npm ng serve --port=8080 --ssl --ssl-key localhost.key --ssl-cert localhost.crt

Environment:

  • Angular 14.2.3"
  • Typescript 4.8.3
  • Algoliasearch 4.20.0
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant