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

Bump open-api-plugin version #8476

Closed
wants to merge 2 commits into from

Conversation

melindafekete
Copy link
Collaborator

@melindafekete melindafekete commented Oct 18, 2024

About the changes

Tyring to bump docusaurus-plugin-openapi-docs version to facilitate mdx v3 upgrade.

What I did:

  1. Bump docusaurus-plugin-openapi-docs to the latest version
  2. Then, it complains about conflicting joi versions, so fixed the version
  3. Delete /reference/api/unleash folder and rerun yarn generate
  4. The process now generates sidebars.ts instead of sidebars.js, so updated code referencing that file
  5. Ran yarn start which fails with
[ERROR] Sidebars file at "/Users/melinda/Desktop/git/unleash/website/sidebars.js" failed to be loaded.
[ERROR] Loading of version failed for version current
[ERROR] /Users/melinda/Desktop/git/unleash/website/docs/reference/api/unleash/sidebar.ts:1
import type { SidebarsConfig } from "@docusaurus/plugin-content-docs";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at wrapSafe (node:internal/modules/cjs/loader:1427:18)
    at Module._compile (node:internal/modules/cjs/loader:1449:20)
    at Module._extensions..js (node:internal/modules/cjs/loader:1588:10)
    at Module.load (node:internal/modules/cjs/loader:1282:32)
    at Module._load (node:internal/modules/cjs/loader:1098:12)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
    at Module.require (node:internal/modules/cjs/loader:1304:12)
    at require (node:internal/modules/helpers:123:16)
    at Object.<anonymous> (/Users/melinda/Desktop/git/unleash/website/sidebars.js:380:25)

@melindafekete melindafekete self-assigned this Oct 18, 2024
Copy link

vercel bot commented Oct 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-docs ❌ Failed (Inspect) Oct 18, 2024 1:23pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Oct 18, 2024 1:23pm

Copy link
Contributor

Dependency Review

The following issues were found:

  • ✅ 0 vulnerable package(s)
  • ❌ 1 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ✅ 0 package(s) with unknown licenses.
  • ⚠️ 7 packages with OpenSSF Scorecard issues.

View full job summary

@melindafekete
Copy link
Collaborator Author

superseded by #8485 PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants