Bug Report
docsify-server-renderer does not declare strip-indent as a dependency. Thus, if the install tree has other versions of strip-indent, like version 4.0.0, we get this error:
var stripIndent = _interopDefault(require('strip-indent'));
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/jpage/Code/<myrepo>/node_modules/strip-indent/index.js from /home/jpage/Code/<myrepo>/node_modules/docsify-server-renderer/build.js not supported.
Instead change the require of index.js in /home/jpage/Code/<myrepo>/node_modules/docsify-server-renderer/build.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/home/jpage/Code/<myrepo>/node_modules/docsify-server-renderer/build.js:13:35)
at Object.<anonymous> (/home/jpage/Code/<myrepo>/node_modules/docsify-cli/lib/commands/start.js:5:18)
at Object.<anonymous> (/home/jpage/Code/<myrepo>/node_modules/docsify-cli/lib/index.js:4:10)
at Object.<anonymous> (/home/jpage/Code/<myrepo>/node_modules/docsify-cli/bin/docsify:8:13) {
code: 'ERR_REQUIRE_ESM'
}
Steps to reproduce
- Install
docsify-cli in a project that has strip-indent@^4.0.0 installed to the top of node_modules.
- Run
docsify init
Current behaviour
The above runtime error occurs
Expected behaviour
No error. docsify-server-renderer should install strip-indent@3 nested under its own node_modules so that it requires the correct version of that dependency.
Other relevant information
Bug Report
docsify-server-rendererdoes not declarestrip-indentas a dependency. Thus, if the install tree has other versions ofstrip-indent, like version4.0.0, we get this error:Steps to reproduce
docsify-cliin a project that hasstrip-indent@^4.0.0installed to the top ofnode_modules.docsify initCurrent behaviour
The above runtime error occurs
Expected behaviour
No error.
docsify-server-renderershould installstrip-indent@3nested under its ownnode_modulesso that it requires the correct version of that dependency.Other relevant information
4.13.1Bug still occurs when all/other plugins are disabled?
Docsify plugins (if the bug happens when plugins enabled, please try to isolate the issue):