Giter Club home page Giter Club logo

Comments (2)

linear avatar linear commented on July 3, 2024

HIG-4654 ErrorBoundary: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.

from highlight.

greptile-apps avatar greptile-apps commented on July 3, 2024

To resolve the issue 'Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node', follow these steps:

  1. Locate the removeChild function:

    • File: __generated/rr/rrweb/rr.js or frontend/src/__generated/rr/rr.js
    • Ensure that the node being removed is indeed a child of the parent node before calling removeChild.
    if (parentNode.contains(childNode)) {
      parentNode.removeChild(childNode);
    }
  2. Check ErrorBoundary:

    • File: e2e/nextjs/src/app/components/error-boundary.tsx
    • Ensure the ErrorBoundary component is correctly handling errors and not causing side effects that might lead to this issue.
    import { ErrorBoundary as HighlightErrorBoundary } from '@highlight-run/next/client';
    
    export function ErrorBoundary({ children }: { children: React.ReactNode }) {
      const isLocalhost = typeof window === 'object' && window.location.host === 'localhost';
    
      return (
        <HighlightErrorBoundary showDialog={!isLocalhost}>
          <>{children}</>
        </HighlightErrorBoundary>
      );
    }

References

/__generated/rr/rrweb/rr.js
/frontend/src/__generated/rr/rr.js
/e2e/nextjs/src/app/components/error-boundary.tsx
/frontend/src/pages/IntegrationsPage/components/VercelIntegration/VercelIntegrationConfig.tsx
/e2e/remix/app/components/error-boundary.tsx
/frontend/src/pages/ErrorsV2/ErrorInstance/ErrorBoundaryFeedback.tsx
/sdk/highlight-next/src/ssr.tsx
/frontend/src/pages/ErrorsV2/ErrorStateSelect/ErrorStateSelect.tsx
/sdk/client/src/index.tsx
/frontend/src/components/RelatedResourcePanel/RelatedResourcePanel.tsx
/frontend/src/pages/IntegrationsPage/components/ClickUpIntegration/ClickUpIntegrationConfig.tsx
/frontend/src/pages/ErrorsV2/ErrorIssueButton/ErrorIssueButton.tsx

Ask Greptile

from highlight.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.