inertia icon indicating copy to clipboard operation
inertia copied to clipboard

Typescript error when child is added to the Inertia Head component.

Open benbjurstrom opened this issue 3 years ago • 0 comments

Versions:

  • @inertiajs/inertia version: 0.11
  • @inertiajs/inertia-react version: 0.8.0

Describe the problem:

A typescript error if a child is added to the Inertia <Head> component.

Steps to reproduce:

import { Head } from '@inertiajs/inertia-react'
...
        <Head>
          <meta name="description" content="Example description" />
        </Head>

Gives the following error: error TS2559: Type '{ children: Element[]; }' has no properties in common with type 'IntrinsicAttributes & InertiaHeadProps'.

Looks like there's a couple pull requests to fix the issue. I'd recommend merging in this one: https://github.com/inertiajs/inertia/pull/1210

benbjurstrom avatar Aug 14 '22 20:08 benbjurstrom