#Suruchi Kumari
1 messages · Page 1 of 1 (latest)
Which guides are you following?
Docs
Yup, which ones?
What's not working about it?
I am getting err in stripe button component, I tried to fix it by installing stripe and importing it in my file but still it's showing err in that component
What's the error?
Code is not recognising this stripe button component
That's the error message?
Err in stripe-buy-button component
Yeah
Not the proper message but yeah that message means the same thing
Can you show me a screenshot of the error?
I am doing the same as mention here in docs
Hello! I'm taking over and catching up...
ok
One thing I want to mention here that i am writing my code in typescript in react app
I was just about to say, I don't think this approach is compatible with TypeScript unless you set up something special to allow for the custom web component.
Yeah, so what should I do so that it can be use in my code?
I'm not really well versed in TypeScript, but I think you would need to declare the custom element. Maybe something like this?
declare global {
namespace JSX {
interface IntrinsicElements {
stripe-buy-button: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
}
}
}
btw is there any docs available ?
Docs available for what?
Not that I'm aware of, not for this integration.
Ok, thanks for the help