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] Tasks *api-docs:build fail #2797

Closed
3 tasks done
tschaffter opened this issue Sep 10, 2024 · 0 comments · Fixed by #2793
Closed
3 tasks done

[Bug] Tasks *api-docs:build fail #2797

tschaffter opened this issue Sep 10, 2024 · 0 comments · Fixed by #2793
Assignees
Labels
bug Something isn't working ci Continuous integration

Comments

@tschaffter
Copy link
Member

tschaffter commented Sep 10, 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

The issue occurs in the PR #2793.

Output:

$ nx run model-ad-api-docs:build --skip-nx-cache

   ✔  1/1 dependent project tasks succeeded [0 read from cache]

   Hint: you can run the command with --verbose to see the full dependent project outputs

———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————


> nx run model-ad-api-docs:build

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


    ╔═══════════════════════════════════════════════════════╗
    ║                                                       ║
    ║  A new version of Redocly CLI (1.24.0) is available.  ║
    ║  Update now: `npm i -g @redocly/cli@latest`.          ║
    ║  Changelog: https://redocly.com/docs/cli/changelog/   ║
    ║                                                       ║
    ╚═══════════════════════════════════════════════════════╝
  Found redocly.yaml and using theme.openapi options
Prerendering docsWarning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
TypeError: Cannot read properties of null (reading 'useState')

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

 NX   Ran target build for project model-ad-api-docs and 1 task(s) they depend on (3s)

   ✖  1/2 failed
   ✔  1/2 succeeded [0 read from cache]

Logs: https://github.com/Sage-Bionetworks/sage-monorepo/actions/runs/10785502298/job/29910804908?pr=2793

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 ci Continuous integration labels Sep 10, 2024
@tschaffter tschaffter self-assigned this Sep 10, 2024
tschaffter added a commit to tschaffter/sage-monorepo that referenced this issue Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ci Continuous integration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant