Skip to content
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

material-ui - JSS issues #106

Open
bartlomiejzuber opened this issue Aug 20, 2020 · 0 comments
Open

material-ui - JSS issues #106

bartlomiejzuber opened this issue Aug 20, 2020 · 0 comments

Comments

@bartlomiejzuber
Copy link

When tests are run on components written with makeStyle from https://material-ui.com/ library you will see plenty of those warnings in your console:
image

I've tracked down this issue through https://github.com/cssinjs/jss and found out the issue occurs if rule isn't valid by e.g. if some property miss the value.
image

Then cssRule becomes undefined and this error is thrown:

[JSS] Cannot set property 'parentStyleSheet' of undefined

Imo as original insertRule doesn't throw this error for invalid rules it should work the same in CSSOM.

If you need help with fixing it, please let me know. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant