Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: failed to execute 'insertBefore' on 'Node' #2586

Open
scottdixon opened this issue Oct 4, 2024 · 2 comments
Open

Error: failed to execute 'insertBefore' on 'Node' #2586

scottdixon opened this issue Oct 4, 2024 · 2 comments
Labels
Bug Something isn't working SEV-3

Comments

@scottdixon
Copy link
Contributor

scottdixon commented Oct 4, 2024

What is the location of your example repository?

https://github.com/scottdixon/hydrogen-meta-exports-bug

Which package or tool is having this issue?

Hydrogen

What version of that package or tool are you using?

2024.7.8

What version of Remix are you using?

2.10.1

Steps to Reproduce

The storefront will throw a 500 error:

Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

Findings so far:

  • I suspect it's got something to do with Tailwind. Commenting out tailwindcss() from vite.config.js prevents the issue.
  • Can't replicate with h2 preview.
  • A fresh Remix app doesn't exhibit the same behaviour.

Expected Behavior

Meta exports should work.

Actual Behavior

The storefront throws a 500:

Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

@scottdixon scottdixon added Bug Something isn't working SEV-3 labels Oct 4, 2024
@wizardlyhel
Copy link
Contributor

wizardlyhel commented Oct 9, 2024

Not a meta export issue - remix-run/remix#9242

This is very likely an issue that only appears in dev

@wizardlyhel wizardlyhel changed the title Meta exports / Tailwind bug: failed to execute 'insertBefore' on 'Node' Error: ailed to execute 'insertBefore' on 'Node' Oct 9, 2024
@wizardlyhel wizardlyhel changed the title Error: ailed to execute 'insertBefore' on 'Node' Error: failed to execute 'insertBefore' on 'Node' Oct 9, 2024
@juanpprieto
Copy link
Contributor

As a temporary workaround, I believe upgrading to React 19 seems to solve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working SEV-3
Projects
None yet
Development

No branches or pull requests

3 participants