-
Notifications
You must be signed in to change notification settings - Fork 995
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
[Docs]: graphql use-in-docusaurus setup steps #8559
Comments
@dthyresson Hi, David. I created a reproducible procedure for the problem we discussed in Discord. Could you please help me check if it actually breaks? Thank you! |
I think I left out a small step and got the order slightly wrong.
This should now have a "docs/docs/" directory structure which I guess is a bit odd. May improve that but the Now:
So my mistake I think is to first cd into I bet it messes up the react version. Can you try that and then we can correct the docs? |
@YeHW Can you confirm that the above works? Note:
I had to use "docs/*" for my workspace. I am wondering if have the "docs/docs" is too confusing and we either rename the root directory workspace to something like "documentation" and then hav a different directory for the "docs" docusaurus app/site? |
@dthyresson It Still doesn't work with the same error.
Though I'm not very familiar with managing node dependencies, is it normal to have break in dependencies after running command like |
Are you working in a new fresh redwood app? |
Yeah, I start a new app as the procedure in the OP. |
Strange. The steps I did let me have both a rw dev and Docusaurus served app running simultaneously. |
I tried three kinds of orders and here are the results.
[INFO] Creating new Docusaurus project...
[INFO] Installing dependencies with npm...
npm WARN ERESOLVE overriding peer dependency
npm WARN ERESOLVE overriding peer dependency
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @mdx-js/react@1.6.22
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR! peer react@"^16.8.4 || ^17.0.0" from @docusaurus/types@2.4.1
npm ERR! node_modules/@docusaurus/module-type-aliases/node_modules/@docusaurus/types
npm ERR! @docusaurus/types@"2.4.1" from @docusaurus/module-type-aliases@2.4.1
npm ERR! node_modules/@docusaurus/module-type-aliases
npm ERR! dev @docusaurus/module-type-aliases@"2.4.1" from docs@0.0.0
npm ERR! docs/docs
npm ERR! docs@0.0.0
npm ERR! node_modules/docs
npm ERR! 3 more (@docusaurus/plugin-content-docs, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.13.1 || ^17.0.0" from @mdx-js/react@1.6.22
npm ERR! node_modules/@mdx-js/react
npm ERR! @mdx-js/react@"^1.6.22" from @storybook/addon-docs@6.5.17-alpha.0
npm ERR! node_modules/@storybook/addon-docs
npm ERR! @storybook/addon-docs@"6.5.17-alpha.0" from @redwoodjs/testing@5.3.0
npm ERR! node_modules/@redwoodjs/testing
npm ERR! @redwoodjs/testing@"5.3.0" from @redwoodjs/core@5.3.0
npm ERR! node_modules/@redwoodjs/core
npm ERR! 1 more (@storybook/addon-essentials)
npm ERR! @mdx-js/react@"^1.6.22" from docs@0.0.0
npm ERR! docs/docs
npm ERR! docs@0.0.0
npm ERR! node_modules/docs
npm ERR! workspace docs/docs from the root project
npm ERR! 1 more (@docusaurus/theme-classic)
npm ERR!
npm ERR! Conflicting peer dependency: react@17.0.2
npm ERR! node_modules/react
npm ERR! peer react@"^16.13.1 || ^17.0.0" from @mdx-js/react@1.6.22
npm ERR! node_modules/@mdx-js/react
npm ERR! @mdx-js/react@"^1.6.22" from @storybook/addon-docs@6.5.17-alpha.0
npm ERR! node_modules/@storybook/addon-docs
npm ERR! @storybook/addon-docs@"6.5.17-alpha.0" from @redwoodjs/testing@5.3.0
npm ERR! node_modules/@redwoodjs/testing
npm ERR! @redwoodjs/testing@"5.3.0" from @redwoodjs/core@5.3.0
npm ERR! node_modules/@redwoodjs/core
npm ERR! 1 more (@storybook/addon-essentials)
npm ERR! @mdx-js/react@"^1.6.22" from docs@0.0.0
npm ERR! docs/docs
npm ERR! docs@0.0.0
npm ERR! node_modules/docs
npm ERR! workspace docs/docs from the root project
npm ERR! 1 more (@docusaurus/theme-classic)
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution. |
Found a similar issue here. |
Summary and description
This is the related doc: graphql#use-in-docusaurus. When I setup the docusaurus workspace, I encountered some errors that might relate to compatibility between redwood and docusaurus. Below is a reproducible procedure:
package.json
file.I guess docusaurus is set up but it breaks redwood dependencies?
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: