Replies: 1 comment
-
I don't think the problem comes from that plugin, it is likely something else. The error comes from the usage of But I audited this plugin before Docusaurus v3.6 release and it does not use So, I suspect it's another thing that breaks your site. We'd need a repro to be able to help you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Docusaurus version: 3.6.1
Docusaurus-plugin-openapi-docs Version: 4.0.1 (Latest)
Before upgrading to version 3.6.1 and enabling rspack, I used the docusaurus openapi plugin to generate an API webpage from my api spec files (generated by the Open Api Specification Client [oas]). Since, upgrading I've been running into build issues, most likely related to rspack. Here is my current config with the upgraded versions:
Example OAS-generated JSON file
api/admin-api.json
:Configuration in
docusaurus.config.js
:For this to build correctly, I also had to add
docusaurus-theme-openapi-docs
to my themes.On build, the plugin errors with:
If I turn off rspack (and make associated changes to the webpack config), the build passes. There seems to be an incompatibility with rspack and this plugin at the moment. I have an open issue on that project: milesj/docusaurus-plugin-typedoc-api#158. In the meanwhile, does anyone know of any workarounds to generate API html from OAS-generated JSON?
Beta Was this translation helpful? Give feedback.
All reactions