-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Labels
status: can not reproduceNot enough information to reproduceNot enough information to reproduce
Description
Bug report
Required System information
Node.js version: 14.19.1
NPM version: 6.14.4
Strapi version: 4.2.2
Database: Postgresql 14
Operating system: Ubuntu WSL x86_64
Note, I'm on an out of date version due to existing unresolved issues updating, see #13977
Describe the bug
The Documentation plugin doesn't work. The error below comes up and the server can no longer be started without uninstalling the plugin
[2022-10-04 09:56:19.761] error: Cannot read property 'api' of undefined
TypeError: Cannot read property 'api' of undefined
at Object.getApiDocumentationPath (/home/callum/coding/ino-creative-main-website/backend/node_modules/@strapi/plugin-documentation/server/services/documentation.js:88:40)
at Object.generateFullDoc (/home/callum/coding/ino-creative-main-website/backend/node_modules/@strapi/plugin-documentation/server/services/documentation.js:140:43)
at Object.module.exports [as bootstrap] (/home/callum/coding/ino-creative-main-website/backend/node_modules/@strapi/plugin-documentation/server/bootstrap.js:53:65)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Object.bootstrap (/home/callum/coding/ino-creative-main-website/backend/node_modules/@strapi/strapi/lib/core/domain/module/index.js:40:7)
at async Object.bootstrap (/home/callum/coding/ino-creative-main-website/backend/node_modules/@strapi/strapi/lib/core/registries/modules.js:28:9)
at async Strapi.runLifecyclesFunctions (/home/callum/coding/ino-creative-main-website/backend/node_modules/@strapi/strapi/lib/Strapi.js:479:5)
at async Strapi.bootstrap (/home/callum/coding/ino-creative-main-website/backend/node_modules/@strapi/strapi/lib/Strapi.js:417:5)
at async Strapi.load (/home/callum/coding/ino-creative-main-website/backend/node_modules/@strapi/strapi/lib/Strapi.js:426:5)
at async Strapi.start (/home/callum/coding/ino-creative-main-website/backend/node_modules/@strapi/strapi/lib/Strapi.js:169:9)
Steps to reproduce the behavior
- Install latest version of
@strapi/plugin-documentation, currently 4.3.6 (I also tried this with multiple previous versions) - run npm run develop
- Command fails, see error
[2022-10-04 09:56:19.761] error: Cannot read property 'api' of undefined
TypeError: Cannot read property 'api' of undefined
at Object.getApiDocumentationPath (/home/callum/coding/ino-creative-main-website/backend/node_modules/@strapi/plugin-documentation/server/services/documentation.js:88:40)
at Object.generateFullDoc (/home/callum/coding/ino-creative-main-website/backend/node_modules/@strapi/plugin-documentation/server/services/documentation.js:140:43)
at Object.module.exports [as bootstrap] (/home/callum/coding/ino-creative-main-website/backend/node_modules/@strapi/plugin-documentation/server/bootstrap.js:53:65)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Object.bootstrap (/home/callum/coding/ino-creative-main-website/backend/node_modules/@strapi/strapi/lib/core/domain/module/index.js:40:7)
at async Object.bootstrap (/home/callum/coding/ino-creative-main-website/backend/node_modules/@strapi/strapi/lib/core/registries/modules.js:28:9)
at async Strapi.runLifecyclesFunctions (/home/callum/coding/ino-creative-main-website/backend/node_modules/@strapi/strapi/lib/Strapi.js:479:5)
at async Strapi.bootstrap (/home/callum/coding/ino-creative-main-website/backend/node_modules/@strapi/strapi/lib/Strapi.js:417:5)
at async Strapi.load (/home/callum/coding/ino-creative-main-website/backend/node_modules/@strapi/strapi/lib/Strapi.js:426:5)
at async Strapi.start (/home/callum/coding/ino-creative-main-website/backend/node_modules/@strapi/strapi/lib/Strapi.js:169:9)
Expected behavior
Installing the plugin and running dev should generate documentation and not crash the server and render the server unable to start without uninstalling the plugin
Metadata
Metadata
Assignees
Labels
status: can not reproduceNot enough information to reproduceNot enough information to reproduce