Inertia <Head> issue: TypeError: Cannot convert a Symbol value to a string (react) #2326
Unanswered
SEMINSEMINSEMIN
asked this question in
Help (React)
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Version:
@inertiajs/react
version: 2.0.0Description of problem:
Hello, I am using Inertia/react in a Laravel environment.

I tried to use
<Head>
from Inertia to dynamically set meta tags like description using a variable.However, I encountered the following error when using a variable inside
<Head>
:Here's how my setup looks:
app.blade.php
article-head.tsx
If I hardcode the value directly in the tag (instead of using a variable), the error doesn't happen.
I found a related issue on GitHub, which was closed and related to Vue.
Does anyone know how to fix this or what's causing it in React?
Beta Was this translation helpful? Give feedback.
All reactions