DocumentService Lifecycles/Middlewares cannot be registered #19998
Labels
issue: bug
Issue reporting a bug
severity: medium
If it breaks the basic use of the product but can be worked around
source: core:core
Source is core/core
status: confirmed
Confirmed by a Strapi Team member or multiple community members
version: 5
Bug report
Required System information
Describe the bug
When trying to register a new documentService lifecycle around any of the functions an error is thrown that breaks the content-manager:
[2024-04-02 11:53:59.023] error: middlewares[(index++)] is not a function
Steps to reproduce the behavior
./src/index.js
(See code example below)Expected behavior
Should register the lifecycle
Screenshots
Code snippets
Additional context
Related to: strapi/documentation#2091
The text was updated successfully, but these errors were encountered: