docusaurus-openapi-docs icon indicating copy to clipboard operation
docusaurus-openapi-docs copied to clipboard

Our project is broken after ApiDemoPanel rename

Open shmichael opened this issue 2 years ago • 1 comments

Describe the bug

When upgrading 2.0.0.beta.3 -> 2.0.0.beta.5, our build is broken.

All our openapi endpoints produce errors similar to this:

Module not found: Error: Can't resolve '@theme/ApiDemoPanel/MethodEndpoint' in '[redacted]/docs/api/webhook'
Module not found: Error: Can't resolve '@theme/ApiDemoPanel/SecuritySchemes' in '[redacted]docs/api/webhook'

I believe this is the relevant change: https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/577

We do not reference ApiDemoPanel ourselves - it is all autogenerated from schema. In fact, I grepped all of our codebase for demo and Demo and there's nothing.

This fails both locally and on CI.

shmichael avatar Nov 07 '23 16:11 shmichael

Hi @shmichael, have you tried running docusaurus clear?

sserrata avatar Nov 08 '23 16:11 sserrata