-
Notifications
You must be signed in to change notification settings - Fork 919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Hugo as a peerDependency instead of hiding it #2171
Comments
Hi @SayakMukhopadhyay - thanks for the issue, the background info, and the Docsy upgrade work you've been doing 🙌🏻. Regarding the issue you've raised here, this is my understanding:
So unless you've tested this in some other context and can confirm that it works for you, it is my understanding that declaring |
Disregard my earlier comments(except maybe the fact about me being wrong about npm installing peer deps by default). It seems like no matter if hugo is added as a peer dependency or if The only thing that works reliably is |
I'm glad that you are arriving at the same conclusions as I did. Even using I'm going close this issue given that a shift to peer deps isn't a solution, and because you've found that including |
Yeah, those are exactly my thoughts regarding consuming docsy. If you do create the issue with your ideas, can you please link this issue or ping me. That would be much appreciated and I will try working on the fix if you would like so. |
Here it is: #2172 |
This issue is related to the PR #2140, #2163 and #2164
Those PRs were created to hide the hugo dependency as it was creating issues in kubernetes/website#48724. I found that the issue was not strictly due to Hugo being present, rather it was because a dependency required for Hugo was not present in the container (see the convo in kubernetes/website#48724 (comment)).
But at the same time, I can understand that installing Hugo is not required when installing Docsy via NPM as most users will install their own version of Hugo. Moreover based on this comment
Originally posted by @chalin in #2140 (comment)
I suggest we move Hugo to
peerDependency
instead of usingdisabledDependency
(which is not a valid property, but I guess it's a stopgap solution). Moreover, I don't think explicitly doing this to every earlier version of docsy is required as the problem in the kubernetes/website wasn't due to the dependency in the first place.The text was updated successfully, but these errors were encountered: