23/12/2024 ERROR RedocPro is not defined
RedocPro is not defined
This just started happening to me as well. Creates an error in the browser and fails to load the page.
This started break our docs page and I can't figure out what changed.
Its too late but is anybody was able to solve this problem? I have got this today...
Create a Markdown file explaining the issue and the new release
from pathlib import Path
md = """# Maintainer update — root cause + fix available in v2.0.0
Issue: RedocPro is not defined (reported 2024‑12‑23)
What happened
Older iDoc templates referenced a legacy Redoc CDN and initialized with redocExport: "RedocPro" / showConsole: true (features that require the Redocly Pro runtime). The legacy CDN path was discontinued, so the global window.RedocPro no longer loads. The page then throws RedocPro is not defined and the docs fail to render.
Impact
Docs that hadn’t changed started breaking around late December 2024 with a browser error and a blank docs page.
The fix (v2.0.0)
We released iDoc v2.0.0, which:
- Removes the dependency on the discontinued CDN and the
RedocProglobal. - Uses the supported Redoc OSS bundle for read‑only docs.
- Adds a slide‑in Swagger UI “Try it” panel for interactive testing (no Redocly Pro required).
This restores functionality and provides feature‑parity “Try it” without Redocly Pro.
How to upgrade (required)
- Update the package:
composer update ovac/idoc