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

Uncaught TypeError: Cannot read properties of undefined (reading 'length') and Uncaught (in promise) #1282

Closed
garthkoyle opened this issue Dec 20, 2023 · 0 comments · Fixed by #1283
Assignees
Labels
S6: has fix 💉 status (for use on issues) T: bug 🐛 type: FIX - any bug fixes

Comments

@garthkoyle
Copy link

Getting this type error while trying to create a REM series (20 datetimes and tickets) on a new event. This happens in master and NEW/pagination-show-all-option branches.

Uncaught TypeError: Cannot read properties of undefined (reading 'length')
    at DateCard.tsx:17:20
    at updateMemo (react-dom.js?ver=18.2.0:17256:21)
    at Object.useMemo (react-dom.js?ver=18.2.0:17896:18)
    at useMemo (react.js?ver=18.2.0:1640:23)
    at M (DateCard.tsx:15:28)
    at renderWithHooks (react-dom.js?ver=18.2.0:16315:20)
    at updateFunctionComponent (react-dom.js?ver=18.2.0:19598:22)
    at beginWork (react-dom.js?ver=18.2.0:21611:18)
    at HTMLUnknownElement.callCallback (react-dom.js?ver=18.2.0:4151:16)
    at Object.invokeGuardedCallbackDev (react-dom.js?ver=18.2.0:4200:18)

The above error occurred in the component:

    at M (https://localcafe.local/wp-content/plugins/barista/build/static/js/dates-card-view.350cf429.chunk.js:1:8849)
    at div
    at t.a (https://localcafe.local/wp-content/plugins/barista/build/static/js/uiComponents.5610751d.js?ver=5.0.13.rc.014:2:33424)
    at t.default (https://localcafe.local/wp-content/plugins/barista/build/static/js/dates-card-view.350cf429.chunk.js:1:9379)
    at Suspense
    at $
    at div
    at u (https://localcafe.local/wp-content/plugins/barista/build/static/js/uiComponents.5610751d.js?ver=5.0.13.rc.014:2:115761)
    at e.a (https://localcafe.local/wp-content/plugins/barista/build/static/js/eeComponents.75fc57b4.js?ver=5.0.13.rc.014:2:19341)
    at Component (https://localcafe.local/wp-content/plugins/barista/build/static/js/eventEditor.9c067dc1.js?ver=5.0.13.rc.014:2:102929)
    at h (https://localcafe.local/wp-content/plugins/barista/build/static/js/edtrServices.7c0c3f60.js?ver=5.0.13.rc.014:2:148735)
    at s (https://localcafe.local/wp-content/plugins/barista/build/static/js/edtrServices.7c0c3f60.js?ver=5.0.13.rc.014:2:148364)
    at b (https://localcafe.local/wp-content/plugins/barista/build/static/js/edtrServices.7c0c3f60.js?ver=5.0.13.rc.014:2:117890)
    at zr (https://localcafe.local/wp-content/plugins/barista/build/static/js/eventEditor.9c067dc1.js?ver=5.0.13.rc.014:2:170243)
    at b (https://localcafe.local/wp-content/plugins/barista/build/static/js/registry.1351a340.js?ver=5.0.13.rc.014:2:23636)
    at r (https://localcafe.local/wp-content/plugins/barista/build/static/js/slotFill.97be1d57.js?ver=5.0.13.rc.014:2:2197)
    at s (https://localcafe.local/wp-content/plugins/barista/build/static/js/services.76ed2472.js?ver=5.0.13.rc.014:2:57051)
    at c (https://localcafe.local/wp-content/plugins/barista/build/static/js/services.76ed2472.js?ver=5.0.13.rc.014:2:25549)
    at m (https://localcafe.local/wp-content/plugins/barista/build/static/js/services.76ed2472.js?ver=5.0.13.rc.014:2:26114)
    at f (https://localcafe.local/wp-content/plugins/barista/build/static/js/services.76ed2472.js?ver=5.0.13.rc.014:2:56541)
    at s (https://localcafe.local/wp-content/plugins/barista/build/static/js/services.76ed2472.js?ver=5.0.13.rc.014:2:57365)
    at S
    at b (https://localcafe.local/wp-content/plugins/barista/build/static/js/adapters.17f828e5.js?ver=5.0.13.rc.014:2:606981)
    at w (https://localcafe.local/wp-content/plugins/barista/build/static/js/adapters.17f828e5.js?ver=5.0.13.rc.014:2:418928)
    at b (https://localcafe.local/wp-content/plugins/barista/build/static/js/adapters.17f828e5.js?ver=5.0.13.rc.014:2:334636)
    at p (https://localcafe.local/wp-content/plugins/barista/build/static/js/adapters.17f828e5.js?ver=5.0.13.rc.014:2:643099)
    at https://localcafe.local/wp-content/plugins/barista/build/static/js/adapters.17f828e5.js?ver=5.0.13.rc.014:2:678770
    at O (https://localcafe.local/wp-content/plugins/barista/build/static/js/adapters.17f828e5.js?ver=5.0.13.rc.014:2:276600)
    at k (https://localcafe.local/wp-content/plugins/barista/build/static/js/adapters.17f828e5.js?ver=5.0.13.rc.014:2:277518)
    at f (https://localcafe.local/wp-content/plugins/barista/build/static/js/edtrServices.7c0c3f60.js?ver=5.0.13.rc.014:2:117304)
    at a (https://localcafe.local/wp-content/plugins/barista/build/static/js/data.451bfa71.js?ver=5.0.13.rc.014:2:186002)
    at u (https://localcafe.local/wp-content/plugins/barista/build/static/js/data.451bfa71.js?ver=5.0.13.rc.014:2:186413)
    at l (https://localcafe.local/wp-content/plugins/barista/build/static/js/edtrServices.7c0c3f60.js?ver=5.0.13.rc.014:2:117657)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'length')
    at DateCard.tsx:17:20
    at updateMemo (react-dom.js?ver=18.2.0:17256:21)
    at Object.useMemo (react-dom.js?ver=18.2.0:17896:18)
    at useMemo (react.js?ver=18.2.0:1640:23)
    at M (DateCard.tsx:15:28)
    at renderWithHooks (react-dom.js?ver=18.2.0:16315:20)
    at updateFunctionComponent (react-dom.js?ver=18.2.0:19598:22)
    at beginWork (react-dom.js?ver=18.2.0:21611:18)
    at beginWork$1 (react-dom.js?ver=18.2.0:27436:16)
    at performUnitOfWork (react-dom.js?ver=18.2.0:26567:14)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S6: has fix 💉 status (for use on issues) T: bug 🐛 type: FIX - any bug fixes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants