When utilizing the DailyProvider component in a Next.js typescript app, I should be able to pass children as props to the component, as outlined in the docs.
Describe the bug (unexpected behavior)
When utilizing the DailyProvider component and passing children, I am receiving this error on DailyProvider:
Type '{ children: never[]; url: string; }' is not assignable to type 'IntrinsicAttributes & Props'.
Property 'children' does not exist on type 'IntrinsicAttributes & Props'.
Steps to reproduce
Install @daily-co/daily-react-hooks to a Next.js typescript project utilizing Next ^12.1.5.
Add DailyProvider to a page component.
Pass a url and children to the provider.
See error.
Screenshots
System information
* Device: Macbook Pro
* OS, version: Monterey, 12.3.1
* Browser, version: Chrome, Version 101.0.4951.54
# Additional context
Expected behavior
When utilizing the
DailyProvider
component in a Next.js typescript app, I should be able to passchildren
as props to the component, as outlined in the docs.Describe the bug (unexpected behavior)
When utilizing the
DailyProvider
component and passingchildren
, I am receiving this error onDailyProvider
:Steps to reproduce
@daily-co/daily-react-hooks
to a Next.js typescript project utilizing Next^12.1.5
.DailyProvider
to a page component.url
andchildren
to the provider.Screenshots
System information
* Device: Macbook Pro * OS, version: Monterey, 12.3.1 * Browser, version: Chrome, Version 101.0.4951.54 # Additional context