Warnings when installing docs (#1)
Closed
Unknown opened 1 year ago

When installing the docs dependencies using yarn, the following errors are created:

warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.

I assume this is because onedev docs also supports the use of other package managers other than yarn (such as npm?!?!?), I am not a javascript developer thus I do not know much about the javascript package managers.

Then there is a few other warnings I have, which I am not sure what they are about: warning @docusaurus/core > @svgr/webpack > @svgr/plugin-svgo > svgo > stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility warning "@docusaurus/core > react-loadable-ssr-addon-v5-slorber@1.0.1" has unmet peer dependency "react-loadable@*". warning "@docusaurus/core > react-dev-utils > fork-ts-checker-webpack-plugin@6.5.2" has unmet peer dependency "typescript@>= 2.7". warning "@docusaurus/preset-classic > @docusaurus/theme-search-algolia > @docsearch/react > @algolia/autocomplete-preset-algolia@1.7.2" has unmet peer dependency "@algolia/client-search@>= 4.9.1 < 6".

These are only warnings and they seem to be harmless, just a little heads up :)

Robin Shen commented 1 year ago

I am not familiar with modern JS development also. Just followed docusarous manual and it uses npm instead of yarn.

Unknown commented 1 year ago

What about the errors below? Are these outdated dependencies?

Robin Shen commented 1 year ago

Maybe. Did not pay much attention to that as long as build passes.

Unknown commented 1 year ago

"If it works, why change it" xD

Robin Shen commented 1 year ago

Any contribution is welcomed, 😃

Unknown referenced from pull request 1 year ago
Remove npm (#2) Discarded
Unknown referenced from pull request 1 year ago
Unknown commented 1 year ago

I can't seem to find out why the other issues are occurring, this might be an issue with docusaurus

Robin Shen changed state to 'Closed' 1 year ago
Previous Value Current Value
Open
Closed
Unknown commented 1 year ago

I have realised that this issue is with docusaurus and not with your configuration, thus this can not be fixed!

issue 1 of 1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (2)
Reference
onedev/docs#1
Please wait...
Page is in error, reload to recover