gbdev / rgbds-www

RGBDS website, hosting documentation and install instructions. Built with Docusaurus, content from RGBDS man pages.
https://rgbds.gbdev.io
Other
7 stars 8 forks source link

Upgrade to Docusaurus 3 #54

Closed avivace closed 10 months ago

avivace commented 11 months ago

See https://docusaurus.io/blog/preparing-your-site-for-docusaurus-v3

ISSOtm commented 11 months ago

Oh boy. After making the suggested package.json changes, yarn install warned about the following:

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/plugin-debug > @microlink/react-json-view > flux@4.0.4" has incorrect peer dependency "react@^15.0.2 || ^16.0.0 || ^17.0.0".
warning "@docusaurus/preset-classic > @docusaurus/theme-search-algolia > @docsearch/react > @algolia/autocomplete-preset-algolia@1.8.2" has unmet peer dependency "@algolia/client-search@>= 4.9.1 < 6".
warning " > raw-loader@4.0.2" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".

...and then yarn start resulted in

✖ Client
  Compiled with some errors in 2.63s

TypeError: /home/issotm/rgbds-www/node_modules/@docusaurus/core/lib/client/clientEntry.js: (0 , _genMapping.decodedMap) is not a function
    at run.next (<anonymous>)
    at transform.next (<anonymous>)
client (webpack 5.88.2) compiled with 1 error

...and I have no idea why that is.

avivace commented 10 months ago

v3 stable is out. Migration guide is at https://docusaurus.io/docs/migration/v3