-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
v3.8.2 issue with @types/jss #14040
Comments
In the meantime I switched back to Providing a sample seems difficult.. I just set up a completely new project and have no errors:
I'm not sure which part / component causes the error. But I'll try to add some more code and hopefully encounter the error again. EDIT: I had a single occurrence of The search goes on. EDIT2: EDIT3: Removed all inline styles. Still the same error. I have no clue what I should be looking for 😢 |
I get the same problem with 3.8.1 |
This happens in my project too. I appear to still have the old version of
I noticed that the Compared to |
@cmfcmf @oliviertassinari At first I thought, that this can't fix the problem, because it's not related to I just added Then I removed Between each step I did |
Problem is several things:
So, our package.json is telling downstream users to use 9.x with @types/jss when the testing etc of the monorepo is reliant on 10.x.alpha.3 |
@oliviertassinari I see you added the resolutions line in the root package.json - any reason that was added there instead of updated in the packages themselves? |
Potential solution in #14048:
But...I mention in #14048 (comment) that we should not merge this PR if we aren't intending to release on a jss alpha, which perhaps is a bad idea anyway - but not sure of @oliviertassinari's performance research in this area. Options:
I think option 2 is the only way after thinking about it, I have closed my PR. |
Sorry, ignore the reference mistype |
Hi @benneq @rosskevin @oliviertassinari I have been trying to update the material UI version used in my project from 1.4.3 to 3.8.1. As discussed above, I had similar compiling issues with @types/jss. I was able to resolve the compile errors with steps suggested by @benneq (#14040 (comment)) Apart from this, I am facing another typescript error mentioned below which is coming up when I try and build the project. error TS2370: A rest parameter must be of an array type. Similar issue mentioned here :- goemen/react-material-ui-typescript#1 Any help, appriciated thanks !! |
* [styles] Upgrade JSS to v10-alpha * [core] Fix typescript errors related to jss v10
Upgraded to version 3.8.2 and still have the same issue.
I'll adjust the title of this issue to version 3.8.2 |
Just install |
@KharamanV This is a bad idea if you're just using |
The fix will be released in @material-ui/[email protected]. In the meantime, you can stay on 3.7.1. |
@oliviertassinari Any ETA for @material-ui/corev3.8.3? |
@MikeAski I was planing it for this weekend. But: So I think that it's better do it sooner, this evening or tomorrow morning. |
v3.8.3 is live. It should be good now. |
Yup. Just installed, recompiled. Using latest typescript, react, material-ui. No errors. Thanks!!! |
This error shows again in 3.9.0 |
Exactly the same? |
Yes, I just used react-create-app and install v3.9.0. I works fine if I downgrade to 3.8.3 |
I just installed v. 3.9.0, and compiled without error. |
I have also confirmed that 3.9.0 is working fine. Perhaps do a clean build or use a command like |
Hi, I am using @material-ui/core 3.9.1 version. I am still getting below exception. I completely deleted the node module s and package.lock.json file still same issue.
|
@samuelrego version 3.8.1 and 3.8.2 have this error. 3.8.3 should work fine. Can you try to delete |
@benneq thanks, got resolved. |
Hi, not sure if this is the right place to add but I got a pretty similar issue while starting
|
Had similar issue when upgrading to v3.9.2. I downgraded jss to: |
@oliviertassinari @rosskevin Hi ! It came back for |
I believe I have a related issue - see #15396 |
for anyone stumbles upon this, check out this TypeScript issues with @material-ui/styles and @material-ui/core packages it solved my problem |
I am seeing this issue suddenly after updating to MaterialUI 4.0:
in my
|
@williammetcalf Can you remove react-jss or upgrade it? |
At a quick glance that seems to have fixed the issue, but to test it I just removed all of the |
Compile error:
Expected Behavior 🤔
No errors
Current Behavior 😯
Errors
Steps to Reproduce 🕹
Link:
"@material-ui/core": "3.8.1"
Context 🔦
I just upgraded from
3.7.1
to3.8.1
. I have no entry forjss
nor@types/jss
in mypackage.json
.The only entries for
@types/jss
in mypackage-lock.json
:EDIT Happens with
@types/jss
9.5.6
and9.5.7
Your Environment 🌎
The text was updated successfully, but these errors were encountered: