Skip to content

TypeError: Cannot read properties of null (reading 'getBoundingClientRect') #4373

Closed
@markory

Description

@markory

Which generators are impacted?

  • All
  • HTML
  • React
  • Angular
  • Vue
  • Web components
  • Power Apps

Reproduction case

TypeError: Cannot read properties of null (reading 'getBoundingClientRect'):

We upgraded v-core-components from Version 2.1.2 to 2.2.1.
Now in our existing tests we face the problem that vitest fails with TypeError after successfull tests.
With the following log-message:

TypeError: Cannot read properties of null (reading 'getBoundingClientRect')
    at sa (file:///Users/test/node_modules/.pnpm/@db-ux+v-core-components@2.2.1/node_modules/@db-ux/v-core-components/dist/db-ux.es.js:685:9)
    at ua (file:///Users/test/node_modules/.pnpm/@db-ux+v-core-components@2.2.1/node_modules/@db-ux/v-core-components/dist/db-ux.es.js:719:7)
    at Timeout._onTimeout (file:///Users/test/node_modules/.pnpm/@db-ux+v-core-components@2.2.1/node_modules/@db-ux/v-core-components/dist/db-ux.es.js:2552:9)
    at listOnTimeout (node:internal/timers:581:17)
    at processTimers (node:internal/timers:519:7)

Image

Expected Behaviour

No TypeErrror should be raised - existing Tests works like expected before.

Screenshots

No response

Browser version

None

Add any other context about the problem here.

We are running tests with node@v20.19.2

Metadata

Metadata

Assignees

Type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions