TypeError: Cannot read properties of undefined (reading 'parentNode') when reloading task view #152

Closed
opened 2025-11-01 20:48:53 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @Freundschaft on GitHub (Aug 28, 2023).

Description

When performing a full reload (e.g. with chrome dev tools active), the task view fails to load with the following message:

TypeError: Cannot read properties of undefined (reading 'parentNode')
    at parentNode (runtime-dom.esm-bundler.js:33:30)
    at ReactiveEffect.Kt [as fn] (runtime-core.esm-bundler.js:5777:11)
    at ReactiveEffect.run (reactivity.esm-bundler.js:178:19)
    at Ge.qe.update (runtime-core.esm-bundler.js:5814:51)
    at At (runtime-core.esm-bundler.js:5641:18)
    at Ue (runtime-core.esm-bundler.js:5576:7)
    at De (runtime-core.esm-bundler.js:5040:11)
    at Ve (runtime-core.esm-bundler.js:5427:7)
    at Fe (runtime-core.esm-bundler.js:5319:7)
    at Le (runtime-core.esm-bundler.js:5167:7)
logError @ runtime-core.esm-bundler.js:226

Going back to board view and navigating to the task view again helps fix the issue, somehow this only happens with chrome dev tools open.

Vikunja Frontend Version

0.21.0

Vikunja API Version

0.21.0

Browser and version

chrome 116.0.5845.110

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

No response

Originally created by @Freundschaft on GitHub (Aug 28, 2023). ### Description When performing a full reload (e.g. with chrome dev tools active), the task view fails to load with the following message: ``` TypeError: Cannot read properties of undefined (reading 'parentNode') at parentNode (runtime-dom.esm-bundler.js:33:30) at ReactiveEffect.Kt [as fn] (runtime-core.esm-bundler.js:5777:11) at ReactiveEffect.run (reactivity.esm-bundler.js:178:19) at Ge.qe.update (runtime-core.esm-bundler.js:5814:51) at At (runtime-core.esm-bundler.js:5641:18) at Ue (runtime-core.esm-bundler.js:5576:7) at De (runtime-core.esm-bundler.js:5040:11) at Ve (runtime-core.esm-bundler.js:5427:7) at Fe (runtime-core.esm-bundler.js:5319:7) at Le (runtime-core.esm-bundler.js:5167:7) logError @ runtime-core.esm-bundler.js:226 ``` Going back to board view and navigating to the task view again helps fix the issue, somehow this only happens with chrome dev tools open. ### Vikunja Frontend Version 0.21.0 ### Vikunja API Version 0.21.0 ### Browser and version chrome 116.0.5845.110 ### Can you reproduce the bug on the Vikunja demo site? No ### Screenshots _No response_
GiteaMirror added the bug label 2025-11-01 20:48:53 -05:00
Author
Owner

@kolaente commented on GitHub (Aug 29, 2023):

Which view were you on when that happend? How did you get there? (which pages did you visit before etc)

@kolaente commented on GitHub (Aug 29, 2023): Which view were you on when that happend? How did you get there? (which pages did you visit before etc)
Author
Owner

@kolaente commented on GitHub (Aug 29, 2023):

If you can reproduce it reliably, can you enable sentry and try again? (window.SENTRY_ENABLED in the index.html file or using the VIKUNJA_SENTRY_ENABLED with the docker image)

@kolaente commented on GitHub (Aug 29, 2023): If you can reproduce it reliably, can you enable sentry and try again? (`window.SENTRY_ENABLED` in the `index.html` file or using the `VIKUNJA_SENTRY_ENABLED` with the docker image)
Author
Owner

@Freundschaft commented on GitHub (Aug 31, 2023):

yes just did this :) thanks!

@Freundschaft commented on GitHub (Aug 31, 2023): yes just did this :) thanks!
Author
Owner

@kolaente commented on GitHub (Sep 5, 2023):

Does this only happen when you open a task from the kanban view?

@kolaente commented on GitHub (Sep 5, 2023): Does this only happen when you open a task from the kanban view?
Author
Owner

@Freundschaft commented on GitHub (Sep 6, 2023):

yes, so I do the following:

  1. go to board in kanban view
  2. open task
  3. ctrl shift r reload, after some times the error will occur
@Freundschaft commented on GitHub (Sep 6, 2023): yes, so I do the following: 1. go to board in kanban view 2. open task 3. ctrl shift r reload, after some times the error will occur
Author
Owner

@Typhonragewind commented on GitHub (Jan 9, 2024):

I'm having a related issue, i believe. Whenever i open a task that contains an image embedded in the description (in any view), i can't get out of it without reloading the whole page, and the console gives me these errors:
image

Currently on Frontend and API v0.22.0 via Docker

@Typhonragewind commented on GitHub (Jan 9, 2024): I'm having a related issue, i believe. Whenever i open a task that contains an image embedded in the description (in any view), i can't get out of it without reloading the whole page, and the console gives me these errors: ![image](https://github.com/go-vikunja/frontend/assets/7875917/b07dda1f-a409-4880-8e8a-c5a16f64c970) Currently on Frontend and API v0.22.0 via Docker
Author
Owner

@kolaente commented on GitHub (Jan 21, 2024):

This is now fixed in 0b3604d167. Please check with the latest unstable build (on try) to see if the problem went away.

@kolaente commented on GitHub (Jan 21, 2024): This is now fixed in [0b3604d167](https://kolaente.dev/vikunja/frontend/commit/8ea97f3ffc16eb795badf623bd195cd9b8d9a388). Please check with the latest unstable build (on [try](https://try.vikunja.io)) to see if the problem went away.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#152