Skip to content

TypeError: Cannot read properties of null (reading 'map') #2331

@arnowelzel

Description

@arnowelzel

Describe the bug
When opening the Bookmarks app there are many errors in the console like these:

TypeError: Cannot read properties of null (reading 'map')
    at o.tags (bookmarks-src_components_ViewPrivate_vue.js?v=52acc5cac172546bf716:1:81202)
    at e.get (bookmarks-main.js?v=f215bb01-0:2:1148472)
    at e.evaluate (bookmarks-main.js?v=f215bb01-0:2:1149468)
    at o.tags (bookmarks-main.js?v=f215bb01-0:2:1161945)
    at fn (bookmarks-src_components_ViewPrivate_vue.js?v=52acc5cac172546bf716:1:84967)
    at i (bookmarks-main.js?v=f215bb01-0:2:1142234)
    at o.Ot [as _t] (bookmarks-main.js?v=f215bb01-0:2:1139482)
    at o.Ec (bookmarks-main.js?v=f215bb01-0:2:2416287)
    at e._render (bookmarks-main.js?v=f215bb01-0:2:1167936)
    at o.a (bookmarks-main.js?v=f215bb01-0:2:1197937)

A bad HTTP response code (404) was received when fetching the script.

bookmarks-main.js?v=f215bb01-0:2 TypeError: Failed to register a ServiceWorker for scope ('https://server.example/apps/bookmarks') with script ('https://server.example/index.php/apps/bookmarks/bookmarks-service-worker.js'): A bad HTTP response code (404) was received when fetching the script.

To Reproduce
Steps to reproduce the behavior:

  1. Install Bookmarks on Nextcloud 31
  2. Open the Bookmarks app
  3. Check the JavaScript console for errors

Expected behavior
There are no errors.

Screenshots

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Vivaldi, Chrome, Firefox
  • Version: latest versions as of 2025-09-29

Server (please complete the following information):

  • OS: Ubuntu 24.04
  • HTTP server: Apache
  • Database: MariaDB
  • PHP version: 8.3
  • Nextcloud version: 31.0.9
  • Bookmarks app version: 15.2.0
  • Activated Nextcloud Apps: -
  • Nextcloud configuration: -
  • Nextcloud external user backend: none

Additional context

Web server error log

Nextcloud log (nextcloud/data/nextcloud.log)

Browser log

Too long to be posted here - just an example:

bookmarks-main.js?v=dd39f1ee-81:2 TypeError: Cannot read properties of null (reading 'map')
    at o.tags (bookmarks-src_components_ViewPrivate_vue.js?v=52acc5cac172546bf716:1:81202)
    at e.get (bookmarks-main.js?v=dd39f1ee-81:2:1148472)
    at e.evaluate (bookmarks-main.js?v=dd39f1ee-81:2:1149468)
    at o.tags (bookmarks-main.js?v=dd39f1ee-81:2:1161945)
    at fn (bookmarks-src_components_ViewPrivate_vue.js?v=52acc5cac172546bf716:1:84967)
    at i (bookmarks-main.js?v=dd39f1ee-81:2:1142234)
    at o.Ot [as _t] (bookmarks-main.js?v=dd39f1ee-81:2:1139482)
    at o.Ec (bookmarks-main.js?v=dd39f1ee-81:2:2416287)
    at e._render (bookmarks-main.js?v=dd39f1ee-81:2:1167936)
    at o.a (bookmarks-main.js?v=dd39f1ee-81:2:1197937)
_n @ bookmarks-main.js?v=dd39f1ee-81:2
bookmarks-main.js?v=dd39f1ee-81:2 You need to fill either the text or the ariaLabel props in the button component. Object o
render @ bookmarks-main.js?v=dd39f1ee-81:2
bookmarks-main.js?v=dd39f1ee-81:2 TypeError: Cannot read properties of null (reading 'map')
    at o.tags (bookmarks-src_components_ViewPrivate_vue.js?v=52acc5cac172546bf716:1:81202)
    at e.get (bookmarks-main.js?v=dd39f1ee-81:2:1148472)
    at e.evaluate (bookmarks-main.js?v=dd39f1ee-81:2:1149468)
    at o.tags (bookmarks-main.js?v=dd39f1ee-81:2:1161945)
    at fn (bookmarks-src_components_ViewPrivate_vue.js?v=52acc5cac172546bf716:1:84967)
    at i (bookmarks-main.js?v=dd39f1ee-81:2:1142234)
    at o.Ot [as _t] (bookmarks-main.js?v=dd39f1ee-81:2:1139482)
    at o.Ec (bookmarks-main.js?v=dd39f1ee-81:2:2416287)
    at e._render (bookmarks-main.js?v=dd39f1ee-81:2:1167936)
    at o.a (bookmarks-main.js?v=dd39f1ee-81:2:1197937)
_n @ bookmarks-main.js?v=dd39f1ee-81:2
bookmarks-main.js?v=dd39f1ee-81:2 You need to fill either the text or the ariaLabel props in the button component. Object o
render @ bookmarks-main.js?v=dd39f1ee-81:2
bookmarks-main.js?v=dd39f1ee-81:2 TypeError: Cannot read properties of null (reading 'map')
    at o.tags (bookmarks-src_components_ViewPrivate_vue.js?v=52acc5cac172546bf716:1:81202)
    at e.get (bookmarks-main.js?v=dd39f1ee-81:2:1148472)
    at e.evaluate (bookmarks-main.js?v=dd39f1ee-81:2:1149468)
    at o.tags (bookmarks-main.js?v=dd39f1ee-81:2:1161945)
    at fn (bookmarks-src_components_ViewPrivate_vue.js?v=52acc5cac172546bf716:1:84967)
    at i (bookmarks-main.js?v=dd39f1ee-81:2:1142234)
    at o.Ot [as _t] (bookmarks-main.js?v=dd39f1ee-81:2:1139482)
    at o.Ec (bookmarks-main.js?v=dd39f1ee-81:2:2416287)
    at e._render (bookmarks-main.js?v=dd39f1ee-81:2:1167936)
    at o.a (bookmarks-main.js?v=dd39f1ee-81:2:1197937)
_n @ bookmarks-main.js?v=dd39f1ee-81:2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions