Skip to content

Getting issue removeEventListner in library package #266

Description

@riteshSajwan

Getting error of page break due to package is trying to call removeEventListener on a null DOM node during unmount.
Is this is a bug in the component's componentWillUnmount lifecycle method?

Uncaught TypeError: Cannot read properties of null (reading 'removeEventListener')
at Multiselect2.componentWillUnmount

The above error occurred in the component:

at Multiselect2 (http://localhost:3001/node_modules/.vite/deps/multiselect-react-dropdown.js?v=76d86c8d:98:34)
at div
at div
at div
at CallToAction (http://localhost:3001/src/app/pages/campaign-setup/tikTokComponents/callToAction/CallToAction.tsx:30:5)
at form
at div
at div
at div
at SmartPerformance (http://localhost:3001/src/app/pages/campaign-setup/SmartPerformance.tsx:50:20)
at DisableSidebar (http://localhost:3001/src/_metronic/layout/core/SidebarSettings.tsx:41:27)
at Suspense
at SuspensedView (http://localhost:3001/src/app/routing/PrivateRoutes.tsx:2414:26)
at Outlet (http://localhost:3001/node_modules/.vite/deps/chunk-OFAZ5ICP.js?v=76d86c8d:1119:26)
at div
at div
at section
at TikTokLayout (http://localhost:3001/src/app/pages/campaign-setup/TikTokLayout.tsx:31:20)
at Outlet (http://localhost:3001/node_modules/.vite/deps/chunk-OFAZ5ICP.js?v=76d86c8d:1119:26)
at div
at Content (http://localhost:3001/src/_metronic/layout/components/Content.tsx:22:20)
at div
at div
at div
at div
at div
at PageDataProvider (http://localhost:3001/src/_metronic/layout/core/PageData.tsx:27:29)
at CampaignLayout (http://localhost:3001/src/_metronic/layout/CampaignLayout.tsx:27:27)
at Routes (http://localhost:3001/node_modules/.vite/deps/chunk-OFAZ5ICP.js?v=76d86c8d:1179:5)
at PrivateRoutes
at Outlet (http://localhost:3001/node_modules/.vite/deps/chunk-OFAZ5ICP.js?v=76d86c8d:1119:26)
at AuthInit (http://localhost:3001/src/app/modules/auth/core/Auth.tsx:73:21)
at ThemeModeProvider (http://localhost:3001/src/_metronic/partials/layout/theme-mode/ThemeModeProvider.tsx:66:30)
at LayoutProvider (http://localhost:3001/src/_metronic/layout/core/LayoutProvider.tsx:47:27)
at IntlProvider3 (http://localhost:3001/node_modules/.vite/deps/react-intl.js?v=76d86c8d:4116:45)
at I18nProvider (http://localhost:3001/src/_metronic/i18n/i18nProvider.tsx:41:25)
at Suspense
at App (http://localhost:3001/src/app/App.tsx:27:35)
at Routes (http://localhost:3001/node_modules/.vite/deps/chunk-OFAZ5ICP.js?v=76d86c8d:1179:5)
at Router (http://localhost:3001/node_modules/.vite/deps/chunk-OFAZ5ICP.js?v=76d86c8d:1126:15)
at BrowserRouter (http://localhost:3001/node_modules/.vite/deps/react-router-dom.js?v=76d86c8d:86:5)
at AppRoutes (http://localhost:3001/src/app/routing/AppRoutes.tsx:48:51)
at AuthProvider (http://localhost:3001/src/app/modules/auth/core/Auth.tsx:45:25)
at MetronicI18nProvider (http://localhost:3001/src/_metronic/i18n/Metronici18n.tsx:44:33)
at QueryClientProvider2 (http://localhost:3001/node_modules/.vite/deps/chunk-CJ7GYDMJ.js?v=76d86c8d:2853:25)
at Provider (http://localhost:3001/node_modules/.vite/deps/react-redux.js?v=76d86c8d:1198:3)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions