ReferenceError: React is not defined using Disclosure with as='div'
prop
#1788
Unanswered
fernandordev
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Disclosure with
as='div'
prop:When building for pruduction, I'm gettings this on console log:
ReferenceError: React is not defined
If I remove the as='div' prop, things work correctly.
Any reasons why this happens?
Using @headlessui/react v1.6.6 with Vite
Beta Was this translation helpful? Give feedback.
All reactions