You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using "intuit-oauth-ts": "^0.0.4" which has a dependency which adds Buffer polyfill. And with this intuit-oauth-ts our repo is working perfectly with above config.
Now we are trying to add new sdk - statsig-react, which also has a dependency -safer-buffer which is also adding Buffer polyfill and it's creating a conflict - Identifier 'Buffer' has already been declared.
Can somebody help here? We have already tried below option it's not working since this issue is at dependency level. We don't won't to switch back to react-scripts.
Uncaught SyntaxError: Identifier 'Buffer' has already been declared (at intuit-oauth-ts.js?v=ad72efd1:238:1)
My environment:
vite: 4.4.0
Vite Config
We are using
"intuit-oauth-ts": "^0.0.4"
which has a dependency which addsBuffer
polyfill. And with this intuit-oauth-ts our repo is working perfectly with above config.Now we are trying to add new sdk - statsig-react, which also has a dependency -safer-buffer which is also adding
Buffer
polyfill and it's creating a conflict - Identifier 'Buffer' has already been declared.I am providing one minimal reproduction repo here.
Can somebody help here? We have already tried below option it's not working since this issue is at
dependency
level. We don't won't to switch back to react-scripts.The text was updated successfully, but these errors were encountered: