checkout works on local but dose not work on server
When I run the website on my local machine checkout works. But when I run on the server it shows ':( Something went wrong.' does anyone know how to fix the issue?
same here @jgudo
@jekabso21 did you managed to solve that problem?
ok, I managed to solve that problem. just replace this
import PhoneInput from 'react-phone-input-2';
to this
// eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore import RPI from "react-phone-input-2"; const PhoneInput = RPI.default ? RPI.default : RPI;
@jekabso21 did you managed to solve that problem?
@jgudo No I needed to find the way how to fix that in 24h so at the end I hosted server where I placed on server and set self certified https. Because it dose not work if it is not on https and the website needs premissions to use camera. And the only way to get premmisions to use camera is with https.
Wadguk's solution above works well for this issue