-
Notifications
You must be signed in to change notification settings - Fork 310
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
stylex.create({}) show error TS2554: Expected 0 arguments, but got 1
#313
Comments
…uments, but got 1
I've created a pull request with fix: #314 |
The Please share an example of the issue you're seeing. |
I thought that |
This feels like an IntelliJ bug. This all works in VS Code. Leaving the issue open for you to verify on your end. |
i had that error but I didn't know when I was using VSCode as well. This is an error on Stylex Side |
I'm facing the same error. Any solution for this? |
You're most likely using an old version of Typescript. As you can see on the Can you both verify the version of Typescript you're using? |
Just upgrade TS version in @nmn Please provide example of running jest tests in Nextjs 14 with stylexjs? I've managed a lot to be able to use stylexjs with Next js 14 but I cannot move further with falling tests( I'm using Jest with React Testing Library and getting error:
|
Upgrading the typescript solved the issue, thanks. |
Added a single Jest snapshot test in this repo: |
Please remove
const
from:stylex/packages/stylex/src/StyleXTypes.d.ts
Line 108 in a3528b6
The text was updated successfully, but these errors were encountered: