Fiat onramp error

I am using the boilerplate with the fiat onramp
It works fine on localhost, but if I build, deploy and run it online I get errors

TypeError: Object(…) is not a function at Fe (Ramper.jsx:10:3) at oo (react-dom.production.min.js:157:137) at Zc (react-dom.production.min.js:267:460) at Ss (react-dom.production.min.js:250:347) at Is (react-dom.production.min.js:250:278) at Cs (react-dom.production.min.js:250:138) at vs (react-dom.production.min.js:243:163) at react-dom.production.min.js:123:115 at t.unstable_runWithPriority (scheduler.production.min.js:18:343) at qa (react-dom.production.min.js:122:325)

uc @ react-dom.production.min.js:216
n.callback @ react-dom.production.min.js:216
bi @ react-dom.production.min.js:131
Ac @ react-dom.production.min.js:220
Rs @ react-dom.production.min.js:259
t.unstable_runWithPriority @ scheduler.production.min.js:18
qa @ react-dom.production.min.js:122
Bs @ react-dom.production.min.js:252
vs @ react-dom.production.min.js:243
(anonymous) @ react-dom.production.min.js:123
t.unstable_runWithPriority @ scheduler.production.min.js:18
qa @ react-dom.production.min.js:122
Wa @ react-dom.production.min.js:123
Za @ react-dom.production.min.js:122
He @ react-dom.production.min.js:292
Jt @ react-dom.production.min.js:73

how do you run that code on localhost when it works?

I use “yarn start” to run it locally
then use “yarn build” to run the build
copy the build folder over to netlify

and if you run what is in build folder in localhost it works?

im using http-server --push-state
and it also doesnt work, so it must be something to do the build process

So development server works, but not if I make a build

I also get this error every now and then, some other people also get it

image