-
Notifications
You must be signed in to change notification settings - Fork 311
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
Errors thrown when defining only null
values in a declaration
#344
Comments
This seems like a bug with To verify, I tried using Here's a fork for your codesandbox example to see it working. Side note: Thank you for providing a reproduction in your issue. It greatly helps me in debugging the issue. |
Thank you for the quick response! Sounds very reasonable - I will raise the issue with the plugin makers, then. Cheers. I wrestled briefly with the other plugin you mentioned, but couldn't get it to work in my setup. Unfortunately, the fork you provided appears to be a 1:1 with my own example and is still using |
@RimanDk Sorry about the link mixup. This should be the correct one. |
Many thanks 🙏 |
The problem
Style objects that include only entries with
null
values result instylex.create should never be called. It should be compiled away.
exception.How to reproduce
Steps to reproduce:
null
values, f.ex:Code Sandbox example (expand console in the browser window - might need a reload to show up)
Expected behavior
Declared styles should be applied and no errors should be thrown
Environment (include versions). Did this work in previous versions?
Tested with 0.3.0 and 0.4.1 in a Vite project, using an unofficial StyleX Vite plugin didn't work with either version.
The text was updated successfully, but these errors were encountered: