-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Error with using ToggleStar (and other child elements from examples like: ActionGrade) #1309
Comments
Have you imported the |
@oliviertassinari Yes, definitely I think it would be best reproducible by |
@TrySpace Please make sure your require is: const ActionGrade = require('material-ui/lib/svg-icons/action/grade'); |
I will try this later, but note that this is nowhere in the documentation: http://material-ui.com/#/components/buttons ( I assume it is in the demo-code somewhere, but that's a 63000 line source-file ;) and I wouldn't know where else to extrapolate the information you just gave me ) I've encountered other cases where Importing How will this change and be unified in future releases? |
That's an issue with the documentation. We can close it as soons as #2433 is closed. |
#2433 is closed. 👍 |
🎉 🎈 |
* Documentation improvements (mui#1229) * [docs] Show DateIOType instead of anys (mui#1228) * Show DateIOType instead of any in prop types tables * Update patrons list * Remove unused filter * Ovveride keyboard datepicker onChange date type * Update prop-types.json * Clarify TypeScript instructions for CSS overrides (mui#1257) * Fix MuiPickersOverrides import in CSS guide * Make instructions a little more dummy proof * Tidyup build config (mui#1309) * Tidyup build config - upgraded babel - upgraded rollup - fixed material-ui globals - replaced babel cli with rollup config with many entries - auto resolve named exports - skip non existent export warning - import correct (esm/cjs) babel helpers - error when material-ui global is not provided Here's generated build/esm/. Treeshaking should work fine. ``` Calendar-b9ae6101.js Calendar.js Clock-3486e4fb.js Clock.js ClockView.js DatePicker.js DateTimePicker.js Day.js Picker-429246aa.js Picker.js TimePicker.js TimePickerToolbar-e568e280.js Wrapper-12538b96.js index.js makePickerWithState-8a1dec7e.js useUtils-7fbeb79a.js ``` * Remove object-rest-spread
* Update packages * [typescript] Fix extending TextField issue * Master (mui#1314) * Documentation improvements (mui#1229) * [docs] Show DateIOType instead of anys (mui#1228) * Show DateIOType instead of any in prop types tables * Update patrons list * Remove unused filter * Ovveride keyboard datepicker onChange date type * Update prop-types.json * Clarify TypeScript instructions for CSS overrides (mui#1257) * Fix MuiPickersOverrides import in CSS guide * Make instructions a little more dummy proof * Tidyup build config (mui#1309) * Tidyup build config - upgraded babel - upgraded rollup - fixed material-ui globals - replaced babel cli with rollup config with many entries - auto resolve named exports - skip non existent export warning - import correct (esm/cjs) babel helpers - error when material-ui global is not provided Here's generated build/esm/. Treeshaking should work fine. ``` Calendar-b9ae6101.js Calendar.js Clock-3486e4fb.js Clock.js ClockView.js DatePicker.js DateTimePicker.js Day.js Picker-429246aa.js Picker.js TimePicker.js TimePickerToolbar-e568e280.js Wrapper-12538b96.js index.js makePickerWithState-8a1dec7e.js useUtils-7fbeb79a.js ``` * Remove object-rest-spread * Update packages * Fix typescript compilation errros
When using from the example:
Gives:
Or:
Gives the same error
The text was updated successfully, but these errors were encountered: