I have integrated @solid/meta in my solid-start project but I keep getting an error.
I have integrated @solid/meta in my solid-start project but I keep getting an error saying <MetaProvider /> should be in the tree. I don't know how to resolve this error even though I configured the MetaProvider at the root level and this is happening in different routes
8 Replies
Your app.tsx should be like this:
I created an external RootLayout file where I defined this and passed it as a prop. However the error is coming when I refresh a page
Here is the code
Put the MetaProvider in your app.tsx?
still the same issue. It only happens when the page has been loaded
Can you share the repo or create a reproduction on stackblitz?
https://start.solid.new/
StackBlitz
Solid-start With Tailwindcss Example - StackBlitz
Run official live example code for Solid-start With Tailwindcss, created by Solidjs on StackBlitz
It will be hard since it's a large project and for a client. I don't know what other options are available.
Probably there is a Meta or Title tag in the server-entry.tsx or somewhere outside the MetaProvider. That’s why the error only occurs on initial page load