Closed jpage-godaddy closed 8 months ago
It appears the problem is that it's loading the wrong version of strip-indent
. I have it twice in my dependency tree, one that's 3.0.0
as a dependency of docsify
and one that's 4.0.0
for an unrelated dependency. When docsify-server-renderer
loads strip-indent
, it's resolving to the one that floated to the top level of my node_modules
which happened to be 4.0.0
instead of 3.0.0
. Basically, the problem is that docsify-server-renderer
doesn't have strip-indent
listed as dependency, so it doesn't have a way of guaranteeing that the correct version resolves. I don't see where the dependencies of docsify-server-renderer
are maintained; I can't even figure out where that package lives.
Hi @jpage-godaddy , thx for your report and sorry for the delay to reply.
We already plan to remove the docsify-server-renderer
out of the main repo (it has been removed from develop
branch now).
Because we involve more changes into the next release now, the new release date may take time to discuss with members.
Sorry for the inconvenient.
Bug Report
docsify-server-renderer
does not declarestrip-indent
as a dependency. Thus, if the install tree has other versions ofstrip-indent
, like version4.0.0
, we get this error:Steps to reproduce
docsify-cli
in a project that hasstrip-indent@^4.0.0
installed to the top ofnode_modules
.docsify init
Current behaviour
The above runtime error occurs
Expected behaviour
No error.
docsify-server-renderer
should installstrip-indent@3
nested under its ownnode_modules
so that it requires the correct version of that dependency.Other relevant information
4.13.1
[x] Bug still occurs when all/other plugins are disabled?
Docsify plugins (if the bug happens when plugins enabled, please try to isolate the issue):