ReferenceError: exports is not defined
when deploying a site with the plugin
#520
Unanswered
pepopowitz
asked this question in
Q&A
Replies: 1 comment
-
Hi @pepopowitz, sorry to hear you're having issues. Unfortunately, I don't have time to deep dive on your issue but, if you haven't already, I recommend reaching out via the Docusaurus Discord community. If you discover the issue may stem from a bug in our plugin please let us know. Thanks and best of luck! |
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
-
I can't seem to get the plugin to work in the built version of my site. It works great locally, but when I build my docusaurus site, any pages generated by the plugin fail to render the right sidebar on the client, with the message
ReferenceError: exports is not defined
.I suspect this is something specific to do with my site, but I can't figure out what. I've tried eliminating everything that I think makes it significantly different from a site freshly generated from the template, and I still can't isolate the problem.
Maybe someone has run into this, or sees something obvious in my package.json or docusaurus.config?
The built site
It's currently using docusaurus v2.2.0 with docusaurus-openapi-docs v1.6.1
A PR that represents everything I did to install the plugin in my existing site
What the built site looks like in a browser:
Beta Was this translation helpful? Give feedback.
All reactions