-
Notifications
You must be signed in to change notification settings - Fork 81
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
Cannot set property className of #<Object> which has only a getter #1356
Comments
@belhassen07 Did you find any solution for this? |
@kontrollanten I actually ditched the whole package. |
@belhassen07 Okay, thanks for letting me know. Did you find any other package that could be used with preact? |
I used @zeit-ui/react which pretty good for my use case and backed by the company. Other than that, it turns out you can use @material-ui with preact, you gotta be careful with bundle size though (meaning use only what you can't recreate easily: Modal? use it, button? probably not, that's my thought process anyway). I hope this helps. |
I have the same issue with DialogFooterButton. I have also come across this error when using IconButtons, but inconsistently. Any luck finding workarounds? |
Sorry for the trouble caused. |
@prateekbh Sorry to hear that! It is a nice project that (in my experience so far) makes combining mdc with PreactX almost seamless. |
Just fyi - After some poking around, the problem seems to stem from here:
Removing the @prateekbh Any hints as to why this might be problematic? |
Changing:
To: |
in your app code are you using class or className? |
Neither really, I am inserting the component "as-is":
|
@prateekbh I made the PR to show the proposed change... I am not sure it is the best solution though. |
Are you using this with preactX or preact8? |
I am using |
Master is not ready for preactX and above there is a separate branch for 2.0 but we never reached a stable state in that branch. |
Ok, I get it. For anyone stumbling across this thread, I found rmwc was a good alternative. |
"preact": "^10.1.0"
"preact-cli": "^3.0.0-rc.6"
The text was updated successfully, but these errors were encountered: