SolidJSS
SolidJSโ€ข4y agoโ€ข
3 replies
Baptiste

Importing web component `[...] does not exist on type 'JSX.IntrinsicElements'`

I'm trying to insert a web component in my Solid component:

import '@power-elements/stripe-elements'

declare global {
  namespace JSX {
    interface IntrinsicElements {
      'stripe-payment-request': any
    }
  }
}

const App = (props) => <div>
      <stripe-payment-request
        publishable-key={props.options.publicKey}
        client-secret={props.options.paymentIntentSecret}
        generate="source"
        amount="125"
        label="Double Double"
        country="CA"
        currency={props.options.currency}
      />
</div>


But it says Property 'stripe-payment-request' does not exist on type 'JSX.IntrinsicElements'.. Any idea how to fix this?
Was this page helpful?