-
Notifications
You must be signed in to change notification settings - Fork 73
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
[component] cannot be used as a JSX component #398
Comments
Hi @vrugtehagel, I'm not able to reproduce this issue. Here's my full test case:
Running |
@vrugtehagel I just figured out how to reproduce this by force installing all new packages. Looking into the issue now. |
It looks like the issue is due to the wrong React types package (v18) being pulled in by one of our dependencies. We're looking into a permanent fix, but for now you can add a yarn
npm
Delete |
The root cause: facebook/react#24304 |
Created a notice about this issue here: #402 |
Describe the bug
In version 6.0.0 of
@stripe/ui-extension-sdk
, components do not have the correct type definitions. Running the TypeScript compiler throws an error for every component, e.g.To Reproduce
Create a new app through
stripe apps create helloworld
. When set up, run the TypeScript compiler.Expected behavior
No errors are thrown.
Desktop (please complete the following information):
MacOS Monterey
The text was updated successfully, but these errors were encountered: