Skip to content

Bug: Error in nextjs with Embed Checkout #5390

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

Closed
birkjernstrom opened this issue Mar 28, 2025 — with Linear · 1 comment
Closed

Bug: Error in nextjs with Embed Checkout #5390

birkjernstrom opened this issue Mar 28, 2025 — with Linear · 1 comment
Assignees

Comments

Copy link
Member

I'm trying to implement the embed checkout in nextjs 15.3.2 but got the error below in dev mode when closing the modal. Not sure if this is a common issue. I use next-intl but this happen in all languages. Error: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.

This is the code of the purchase button:

`"use client";

import { PolarEmbedCheckout } from "@polar-sh/checkout/embed"; import { useEffect } from "react";

const PurchaseLink = () =>...

@leoallesch
Copy link

I fixed this by wrapping it in a div

@github-project-automation github-project-automation bot moved this from Backlog to Done in Backlog Apr 30, 2025
@github-project-automation github-project-automation bot moved this to Done in Polar Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Status: Done
Development

No branches or pull requests

3 participants