Categories-management-plugin TypeError

Hi, i installed the categories-management-plugin on Peertube v7.0.0 and when i try to use it i get the following error :

{"level":"error","message":{"stack":"TypeError: Cannot convert undefined or null to object\n    at Function.keys (<anonymous>)\n    at toArray (/home/yunohost.app/peertube/storage/plugins/node_modules/peertube-plugin-categories/src/enhancedCategories.js:2:10)\n    at toEnhancedCategories (/home/yunohost.app/peertube/storage/plugins/node_modules/peertube-plugin-categories/src/enhancedCategories.js:9:36)\n    at /home/yunohost.app/peertube/storage/plugins/node_modules/peertube-plugin-categories/src/index.js:87:34\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","message":"Cannot convert undefined or null to object"},"label":"peertube.smtnco.net:443 peertube-plugin-categories","timestamp":"2025-01-17T10:10:35.855Z"}

First i thought of a syntax error in my definition of a new category but it does the same with the example provided with the plugin

{"add":[{"key":42,"label":"The meaning of life"}],"delete":[1]}

I tried also the syntax like in this post without any success

Any hint to help me make it work ?
Thank you

Hi, look at your peertube production.yaml config and try adding categories, i.e. will be 19, 20, 21, etc. but don’t delete

  categories:
#    - 1  # Music
#    - 2  # Films
#    - 3  # Vehicles
#    - 4  # Art
#    - 5  # Sports
#    - 6  # Travels
#    - 7  # Gaming
#    - 8  # People
#    - 9  # Comedy
#    - 10 # Entertainment
#    - 11 # News & Politics
#    - 12 # How To
#    - 13 # Education
#    - 14 # Activism
#    - 15 # Science & Technology
#    - 16 # Animals
#    - 17 # Kids
#    - 18 # Food
{
  "add": [
    {"key": 42, "label": "The meaning of life"},
    {"key": 19, "label": "Категория 19"},
    {"key": 20, "label": "Категория 20"},
    {"key": 21, "label": "Категория 21"}
  ]
}