Warnings when installing docs (#1)
Unknown opened 3 years 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 > [email protected]: 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 > [email protected]" has unmet peer dependency "react-loadable@*". warning "@docusaurus/core > react-dev-utils > [email protected]" has unmet peer dependency "typescript@>= 2.7". warning "@docusaurus/preset-classic > @docusaurus/theme-search-algolia > @docsearch/react > @algolia/[email protected]" 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 3 years ago

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

  • Unknown commented 3 years ago

    What about the errors below? Are these outdated dependencies?

  • Robin Shen commented 3 years ago

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

  • Unknown commented 3 years ago

    "If it works, why change it" xD

  • Robin Shen commented 3 years ago

    Any contribution is welcomed, 😃

  • Unknown referenced from pull request 3 years ago
    Remove npm (#2) Discarded
  • Unknown referenced from pull request 3 years ago
  • Unknown commented 3 years 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' 3 years ago
    Previous Value Current Value
    Open
    Closed
  • Unknown commented 3 years ago

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

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