When running docsify serve docs/, it fails with the error
Error: Cannot find module 'prismjs'
This can usually work because the docsify package itself depends on it. However, if some other dependency depends on prismjs, the docsify dependency won't be hoist it so docisfy-server-renderer won't find it.
Other relevant information
This can probably be fixed by adding the dependency to the docisyf-server-renderer as well.
[x] Bug does still occur when all/other plugins are disabled?
Your OS:
Node.js version: v12.18.2
npm/yarn version: yarn 1.22.5
Browser version:
Docsify version: 4.11.6
Docsify plugins:
Please create a reproducible sandbox
Mention the docsify version in which this bug was not present (if any)
Bug Report
When running
docsify serve docs/
, it fails with the errorThis can usually work because the
docsify
package itself depends on it. However, if some other dependency depends onprismjs
, the docsify dependency won't be hoist it sodocisfy-server-renderer
won't find it.Other relevant information
This can probably be fixed by adding the dependency to the
docisyf-server-renderer
as well.[x] Bug does still occur when all/other plugins are disabled?
Your OS:
Node.js version: v12.18.2
npm/yarn version: yarn 1.22.5
Browser version:
Docsify version: 4.11.6
Docsify plugins:
Please create a reproducible sandbox
Mention the docsify version in which this bug was not present (if any)