builder-vite: React is not defined
I hope you can help me figure this one out.
Everything works perfectly in dev mode, but if I build the project, I end up with React is not defined error. The issue happens when I try to import OverlayProvider from @react-aria/overlays. Not sure what exactly the problem is. Tried adding react as an alias, but it doesn’t help. Also not sure what the difference is between dev and prod config that would account for this. Any thoughts?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (7 by maintainers)
Yes, sorry. I should have done it right away. Will report back.