8000 Cannot read properties of null (reading 'assignedSlot') · Issue #2593 · bootstrap-vue-next/bootstrap-vue-next · GitHub
[go: up one dir, main page]

Skip to content
Cannot read properties of null (reading 'assignedSlot') #2593
Closed
@kevinkosterr

Description

@kevinkosterr

Describe the bug

I have been getting this error after upgrading from 0.26.16 to 0.28.0. Although this seems impossible reproduce. I feel like it has something to do with BPopover, the stacktrace comes back to this:

} = useShowHide(modelValue, props, emit as EmitFn, element, computedId, {
showFn: () => {
update()
nextTick(() => {
cleanup = autoUpdate(
floatingTarget.value as ReferenceElement,
element.value as HTMLElement,
update,
{animationFrame: props.realtime}
)
})

I think the floatingTarget.value might be null here.

I do seem to get this error consistently when using Cypress, but only very rarely and randomly on a page.

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'assignedSlot')
    at getParentNode (chunk-vendors.js:155271:8)
    at getNearestOverflowAncestor (chunk-vendors.js:155281:22)
    at getOverflowAncestors (chunk-vendors.js:155298:30)
    at autoUpdate (chunk-vendors.js:155817:387)
    at chunk-vendors.js:156344:21

Closed issue from floating-ui is the same. However, there's no consistent way to reproduce it other than using Cypress.

Reproduction

Trying to get one poses quite a challenge

Used Package Manager

yarn

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneed reproductionThis needs a reproduction in order to continue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0