Unknown opened 1 year ago
|
|||||
I am not familiar with modern JS development also. Just followed docusarous manual and it uses npm instead of yarn. |
|||||
What about the errors below? Are these outdated dependencies? |
|||||
Maybe. Did not pay much attention to that as long as build passes. |
|||||
"If it works, why change it" xD |
|||||
Any contribution is welcomed, 😃 |
|||||
Unknown referenced from pull request 1 year ago
Remove npm (#2)
Discarded
|
|||||
Unknown referenced from pull request 1 year ago
Remove npm (#3)
Merged
|
|||||
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
|
|||||
I have realised that this issue is with docusaurus and not with your configuration, thus this can not be fixed! |
Type |
Question
|
Priority |
Normal
|
Assignee |
Issue Votes (0)
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 :)