Skip to content
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

[Bug] Update Redocly and fix migration bugs for all projects #2819

Closed
3 tasks done
tschaffter opened this issue Sep 16, 2024 · 2 comments · Fixed by #2820
Closed
3 tasks done

[Bug] Update Redocly and fix migration bugs for all projects #2819

tschaffter opened this issue Sep 16, 2024 · 2 comments · Fixed by #2820
Assignees
Labels
api/spec API specification bug Something isn't working documentation Improvements or additions to documentation

Comments

@tschaffter
Copy link
Member

tschaffter commented Sep 16, 2024

Is there an existing issue for this?

  • I have searched the existing issues

What product(s) are you seeing the problem on?

Sage Monorepo

Current behavior

After updating to @redocly/cli, the following error is thrown when building the API docs for OC:

> nx run openchallenges-api-docs:build

> redocly build-docs --config redocly.yaml --output build/redoc-static.html

Found redocly.yaml and using theme.openapi options
Prerendering docs
TypeError: (0 , _react.useId) is not a function

Warning: command "redocly build-docs --config redocly.yaml --output build/redoc-static.html" exited with non-zero status code

This error is related to React, which I have removed a few days ago from the workspace dependencies in part to solve another issue encountered with Redocly. See #2797

Expected behavior

No response

Anything else?

No response

Commit ID

No response

Are you developing inside the dev container?

  • I am using the dev container

Code of Conduct

  • I agree to follow this project's Code of Conduct
@tschaffter tschaffter added bug Something isn't working documentation Improvements or additions to documentation api/spec API specification labels Sep 16, 2024
@tschaffter tschaffter self-assigned this Sep 16, 2024
@tschaffter
Copy link
Member Author

tschaffter commented Sep 16, 2024

Redocly has React has a peer dependency:

  '@redocly/[email protected]([email protected])([email protected])':
    dependencies:
      '@redocly/openapi-core': 1.25.2([email protected])
      abort-controller: 3.0.0
      chokidar: 3.6.0
      colorette: 1.4.0
      core-js: 3.36.1
      form-data: 4.0.0
      get-port-please: 3.1.2
      glob: 7.2.3
      handlebars: 4.7.8
      mobx: 6.13.0
      node-fetch: 2.7.0([email protected])
      pluralize: 8.0.0
      react: 17.0.2
      react-dom: 17.0.2([email protected])
      redoc: 2.1.5([email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]([email protected]))([email protected]))
      semver: 7.6.2
      simple-websocket: 9.1.0
      styled-components: 6.1.13([email protected]([email protected]))([email protected])
      yargs: 17.0.1
    transitivePeerDependencies:
      - bufferutil
      - encoding
      - enzyme
      - react-native
      - supports-color
      - utf-8-validate

@tschaffter
Copy link
Member Author

Redocly supports React 18 as a peer dependencies.

https://github.com/Redocly/redoc/blob/main/package.json

Those are the two React dependencies I removed recently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api/spec API specification bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
1 participant