Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checkout works on local but dose not work on server #75

Open
jekabso21 opened this issue Dec 1, 2023 · 5 comments
Open

checkout works on local but dose not work on server #75

jekabso21 opened this issue Dec 1, 2023 · 5 comments

Comments

@jekabso21
Copy link

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?

@wadguk
Copy link

wadguk commented Jan 3, 2024

same here
@jgudo

@wadguk
Copy link

wadguk commented Jan 3, 2024

@jekabso21 did you managed to solve that problem?

@wadguk
Copy link

wadguk commented Jan 3, 2024

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
Copy link
Author

@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.

@Wabi888
Copy link

Wabi888 commented Jul 30, 2024

Wadguk's solution above works well for this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@jekabso21 @wadguk @Wabi888 and others