nextcloud / nextcloud/deck

`TypeError: window.OCA.Text is undefined` if Text app is not enabled

Open
#5,498 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug feature: description
Dominant language
JavaScript
Stars
1.4k
Forks
354
Avg merge
1d 10h
Merged PRs (30d)
43

Description

How to use GitHub
  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Describe the bug

Having Deck enabled without Text seems to lead to a console error. Yet the UI seems to work fine still.

To Reproduce
Steps to reproduce the behavior:

  1. Open Deck
  2. Open a card

Expected behavior

No error

Screenshots
If applicable, add screenshots to help explain your problem.

Client details:

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version e75fb683287a3cf7417a8aca75b67cddcfc90ecc
  • Device: [e.g. iPhone6, desktop]
Server details

Operating system:

Web server:

Database:

PHP version:

Nextcloud version: (see Nextcloud admin page)

Where did you install Nextcloud from:

Signing status:

Login as admin user into your Nextcloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

Nextcloud configuration:

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or

Insert your config.php content here
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

Logs
Nextcloud log (data/nextcloud.log)
Insert your Nextcloud log here
Browser log
Uncaught (in promise) TypeError: window.OCA.Text is undefined
    setupEditor Description.vue:198
    mounted Description.vue:188
    VueJS 18
    init vue-router.esm.js:3005
    init vue-router.esm.js:3004
    updateRoute vue-router.esm.js:2414
    transitionTo vue-router.esm.js:2263
    confirmTransition vue-router.esm.js:2402
    r vue-router.esm.js:2084
    r vue-router.esm.js:2091
    Fo vue-router.esm.js:2095
    confirmTransition vue-router.esm.js:2396
    r vue-router.esm.js:2084
    r vue-router.esm.js:2088
    f vue-router.esm.js:2384
    To vue-router.esm.js:2162
    f vue-router.esm.js:2362
    r vue-router.esm.js:2087
    r vue-router.esm.js:2091
    r vue-router.esm.js:2091
    r vue-router.esm.js:2091
    r vue-router.esm.js:2088
    f vue-router.esm.js:2384
    <anonymous> router.js:169
    f vue-router.esm.js:2362
    r vue-router.esm.js:2087
Description.vue:198
    setupEditor Description.vue:218
    InterpretGeneratorResume self-hosted:1469
    AsyncFunctionNext self-hosted:852
    (Async: async)
    mounted Description.vue:188
    VueJS 18
    init vue-router.esm.js:3005
    forEach self-hosted:203
    init vue-router.esm.js:3004
    updateRoute vue-router.esm.js:2414
    transitionTo vue-router.esm.js:2263
    confirmTransition vue-router.esm.js:2402
    r vue-router.esm.js:2084
    r vue-router.esm.js:2091
    Fo vue-router.esm.js:2095
    confirmTransition vue-router.esm.js:2396
    r vue-router.esm.js:2084
    r vue-router.esm.js:2088
    f vue-router.esm.js:2384
    To vue-router.esm.js:2162
    f vue-router.esm.js:2362
    r vue-router.esm.js:2087
    r vue-router.esm.js:2091
    r vue-router.esm.js:2091
    r vue-router.esm.js:2091
    r vue-router.esm.js:2088
    f vue-router.esm.js:2384
    <anonymous> router.js:169
    f vue-router.esm.js:2362
    r vue-router.esm.js:2087

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in Description.vue at setupEditor, especially the reported lines 188, 198, and 218, and reproduce the issue with Deck enabled while Text is disabled. Verify the change by opening a Deck card and confirming that the browser console no longer reports window.OCA.Text is undefined and the editor still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.