Skip to content

React 18: Property 'children' does not exist on type 'IntrinsicAttributes & PusherProviderProps'. #104

Open
@francisashley

Description

@francisashley

Describe the bug

Using usePusher in a React 18 TypeScript project throws the error:

Property 'children' does not exist on type 'IntrinsicAttributes & PusherProviderProps'.

This is because React 18 Requires children?: React.ReactNode to be defined in the component props which is missing here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions