Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was 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

Description

@No1e

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions