-
-
Notifications
You must be signed in to change notification settings - Fork 32k
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
Element ref was specified as a string (enhancedSwitch) but no owner was set. #11276
Comments
We encourage people starting with Material-UI to go with v1-beta. The master branch is in a low maintenance mode. We don't plan any work on it. However, we still do our best to review and merge pull requests that fix bugs on this branch. |
@FinnWinchester Make sure non of the proposed reason are correct. They are in 99% of the cases. |
@oliviertassinari I am not using refs so 1. and 2. are not the reason. The 3. I am 99% sure it's not because npm ls react only returns 1 result for both my package and my project. I will try v1-beta. Thanks! |
@FinnWinchester What's the package name? I can have a look at it. |
It is a private one I'm afraid. However I've tried to install material-ui@next but my webpack run seems to fail because of some JSS. Do I need to install anything else? Here's the first error - and there are a lot of errors like this one:
|
I won't be able to help. https://material-ui.com/guides/migration-v0.x#where-should-i-start-in-a-migration-
I think that it's an issue on JSS side. cc @kof. They shouldn't publish the babelrc on npm, for instance. Alright, there is already have an issue on JSS side: cssinjs/jss#673. You can upvote it or submit a pull-request if it's important for you. |
@FinnWinchester What bundler are you using? |
Yeah, I want to use "files" in package.json, ignoring everything is hard long term. |
@oliviertassinari I am using Webpack ^3. It seemed like installing Babel preset es2015, Babel plugin transform-es3-property-literals, and JSS, JSS-Nested and JSS-Global saved the bacon for me. It seems like it's a dependency issue from either material UI beta 45 or JSS itself, I don't know, but after installing all that it worked for me. |
At some point, people are going to upgrade to babel@7. This might greatly awake the problem. |
Yeah maybe @oliviertassinari but it won't fix this JSS issue I had I'm afraid. |
I am developing a custom NPM package that uses Material UI 0.20.0 and React/ReactDOM 16.3.2 and using that NPM package in one of my projects using the same React/ReactDOM versions but not using Material UI (for it's included in that package).
I am getting this error:
The Material UI component I am using is the checkbox. I actually have a custom component that renders that Material UI Checkbox and I am using that custom component (from that custom NPM package) in my project.
Any tips? Thanks!
The text was updated successfully, but these errors were encountered: