-
Notifications
You must be signed in to change notification settings - Fork 210
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
Unable to run Docusaurus open api plugin 3.0.0 beta version in Docusaurus 3.1.1 version as mentioned in your documentation. #832
Comments
@RagonPra I think the install instructions are just a bit out-of-date for the beta. I went through the setup process this afternoon, and here's what I did differently to get things working. InstallationI installed the latest version of docusaurus (v3.4 at the moment) npx create-docusaurus@latest my-website classic --package-manager yarn I installed the latest beta version of the plugin ( yarn add docusaurus-plugin-openapi-docs@3.0.0-beta.10
yarn add docusaurus-theme-openapi-docs@3.0.0-beta.10 Changes to your
|
I am also facing same issue, I followed the process mentioned by @ElliotFriend. I can compile all mdx. But while building I run into following error:
Please help. |
@markandpathak I've seen that a few times... I wanna say it was something to do with a newer feature in docusaurus v3.4. I think I fixed it by force upgrading docusaurus and/or react? You could delete |
@ElliotFriend I tried to upgrade the docusaurus version to 3.4.0, Atleast now that module error is not coming up, but still build process fails. I also created the complete project with Now error is:
Actual error is quite long, I have included error message for one page only, this repeats for all API pages. For your reference:
Package.json file:
|
@ElliotFriend Any update on the issue? How to mitigate this error? |
@markandpathak i'm also having the same issue. Have you found a way around it? |
@markandpathak and @SirPhemmiey I think it's a problem with your Following the same steps in that comment this morning, I could successfully Hope that helps! |
@ElliotFriend You saved the day! It works. Thank you very much for the help. I hope these instructions get added to the main readme documentation for other users' benefit. |
As a reminder, we will happily accept PRs for changes such as these, especially if they'll help others avoid the same pitfalls. |
Will update documentation coinciding with next stable v2/v3 releases |
I have installed a demo site from docusaurus command:
Opened the project folder command terminal and executed following commands:
I have modified my docusaurus config file as follows:
Modified my package.json file as follows:
When i ran
npm run build
command, i am getting this error:How to fix this issue?
The text was updated successfully, but these errors were encountered: