solidjs / solid-meta

Write meta tags to the document head
127 stars 16 forks source link

Hydration errors when using <Meta /> in MDX files with SolidStart #28

Open fabian-hiller opened 1 year ago

fabian-hiller commented 1 year ago

I get the following error when using <Meta name="description" content="..." /> in MDX files with SolidStart:

Failed to execute 'replaceChild' on 'Node': The node to be replaced is not a child of this node.

Steps to reproduce: 
1. Open this StackBlitz project: https://stackblitz.com/edit/node-lctb8x

  1. Once the website is ready, navigate to "MDX Doc 1"
  2. Click on the reload page button of StackBlitz
  3. Navigate to "MDX Doc 2"

The error does not occur when navigating to "index", pressing the reload button and then navigating between the MDX files.

huijiewei commented 1 year ago

use solid-jsx lib

https://stackblitz.com/edit/node-1zzhzu

fabian-hiller commented 1 year ago

@huijiewei solid-jsx didn't fix it for me.