inertiajs/inertia

Module '"@inertiajs/inertia-react"' has no exported member 'Head'.

geocfu opened this issue · 6 comments

Versions:

  • @inertiajs/inertia version: 0.10.0
  • @inertiajs/inertia-react version: 0.7.0

Describe the problem:

As the title implies, there is no exported Head member from inertia-react. Also, react types.d.ts don't have it as well.

Steps to reproduce:

Follow the Title & meta installation instructions from inertia.js

@reinink @claudiodekker
I am kindly bumping this, since I think it's important for anyone using typescript. Essentially, if anyone is using typescript with react, they can't use the Head component.

Hi @geocfu,

While I understand that this issue has a vast importance to you and possible others that use the Head component with React, there simply put isn't much we can do to speed things up to a point where we can get this issue done faster.

With that said, is there no way you can ts-ignore the import? or cast it to an 'any' or 'unknown' type? If not, feel free to submit a PR for this.

In either case, while I appreciate that you're letting us know it's important, please note that our inactivity on this matter does not mean we're not aware of it and it's importance; We're simply too busy getting other also-important/already-in-progress things done before we can get around to fixing issues such as these.

Hope this explains!

I completely understand your point.

I will follow your guidance on the matter.
Also, I will keep this issue updated with the achieved results, so others can benefit as well.

Thank you.

A PR for this exists here #855

I've been waiting for this for weeks.
I think the PR should be merged, it's so weird when i see @ts-ignore in my code.

Thanks you.

See #855 (comment) for a temporary workaround.