-
Notifications
You must be signed in to change notification settings - Fork 34
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
Upgrade to Docusarus v3 #1935
Comments
Hey @nagesh161007 , we could use your input. The OpenAPI plugin project is currently working on releasing support for Docusarus v3. We are using the latest beta module. However, when we do npm run start
> spectro-cloud-docs@4.0.0 start
> docusaurus start --host 0.0.0.0 --port 9000
[INFO] Starting the development server...
/Users/karlcardenas/projects/spectro-cloud/librarium/docs/api-content/api-docs/v1/sidebar.ts:1
import {SidebarConfig} from "@docusaurus/plugin-content-docs/src/sidebars/types";
^^^^^^
SyntaxError: Cannot use import statement outside a module We're unsure how to go about this, as they are mixing typescript and vanilla JS in the upgrade. We figured you might have an idea on how to proceed 😄 |
Sure @karl-cardenas-coding . Will check this today and let you know. |
@nagesh161007 I told the team I'm putting up the Bat sign, tagging you 😀 |
Before
After
In apisidebar.js file removing the error checks for importing solved the issue. Can you please check and let me know if you face the import issue now. |
@nagesh161007 in typical fashion, you elegantly solve the issue. Thank you so much ❤️ |
@karl-cardenas-coding . I think the way of importing inside the function was causing the module resolution errors for typescript files. Need to investigate further for the exact reason for the issue |
It's certainly a new scenario that I haven't seen before. Again, thank you @nagesh161007, for all your help. Happy holidays to you and your family 🎄 🎁 |
@karl-cardenas-coding Happy Holidays Karl 🎄 🎁 |
@karl-cardenas-coding . If our team need any help regarding migration for Docusaurus V3 please let me know. I am happy to help |
Thank you @nagesh161007. It should be smooth sailing now that you unlocked us. Thanks again but we'll make sure to turn on the bat signal if help is needed |
We need to upgrade Docusaurs to the newest version of the framework.
PR #1914 will track this work.
The text was updated successfully, but these errors were encountered: