Using Package with React/Vite Causes Variable Conflict #275
CodyCodes95
started this conversation in
General
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.
-
Hello,
I am creating an app that is embedded into a CMS website (no way around this unfortunately). Im using React/Vite and when I build with this package being imported anywhere into my app, the JS file from build has a const $ which conflicts with a global variable on this website. If I don't minify my build, this doesn't happen, but that is not ideal.
This doesn't SEEM like a react-hot-toast problem, as the $ variable i doesn't appear to be toast related, BUT if I comment toast out it builds fine. What exactly could be going on in toast to be causing this on build?
Beta Was this translation helpful? Give feedback.
All reactions