Comments (6)
Which version of material-ui do you want to use? If you want to use material-ui 0.x, you need material-ui-search-bar@latest. If you want to use material-ui 1.0.0 (preferred 😉), you need to use material-ui-search-bar@beta.
from material-ui-search-bar.
It works ! Thank you very much :)
from material-ui-search-bar.
This is not an issue about this component. Please follow this getting started guide for Material-UI. They also have a Gitter chat room and a stackoverflow tag to help you. 👍
Edit: Google also has a lot of results for your specific error.
from material-ui-search-bar.
Which version of material-ui are you using?
from material-ui-search-bar.
I did a npm install material-ui and I think i get the version 0.20
from material-ui-search-bar.
In fact I don't have any compilation error but it stills not work. This is what I have in the console :
> index.js:2177 Warning: Failed context type: The context muiTheme
is marked as required in Paper
, but its value is undefined
.
in Paper (created by SearchBar)
in SearchBar (at BasicInformation.js:52)
in label (at BasicInformation.js:50)
in form (at BasicInformation.js:49)
in BasicInformation (at PlayerEditView.js:274)
in div (at PlayerEditView.js:273)
in PlayerEditView (at PlayerCreationView.js:19)
in PlayerCreationView (created by Route)
in Route (at Main.js:16)
in Switch (at Main.js:13)
in div (at Main.js:12)
in Main (at App.js:12)
in div (at App.js:10)
in App (at index.js:11)
in Router (created by BrowserRouter)
in BrowserRouter (at index.js:10)
stack_frame_overlay_proxy_console @ index.js:2177
printWarning @ warning.js:33
warning @ warning.js:57
checkPropTypes @ checkPropTypes.js:52
getMaskedContext @ react-dom.development.js:5388
constructClassInstance @ react-dom.development.js:6354
updateClassComponent @ react-dom.development.js:7839
beginWork @ react-dom.development.js:8225
performUnitOfWork @ react-dom.development.js:10224
workLoop @ react-dom.development.js:10288
callCallback @ react-dom.development.js:542
invokeGuardedCallbackDev @ react-dom.development.js:581
invokeGuardedCallback @ react-dom.development.js:438
renderRoot @ react-dom.development.js:10366
performWorkOnRoot @ react-dom.development.js:11014
performWork @ react-dom.development.js:10967
batchedUpdates @ react-dom.development.js:11086
batchedUpdates @ react-dom.development.js:2330
dispatchEvent @ react-dom.development.js:3421
> Paper.js:101 Uncaught TypeError: Cannot read property 'prepareStyles' of undefined
at Paper.render (Paper.js:101) at finishClassComponent (react-dom.development.js:7873) at updateClassComponent (react-dom.development.js:7850) at beginWork (react-dom.development.js:8225) at performUnitOfWork (react-dom.development.js:10224) at workLoop (react-dom.development.js:10288) at HTMLUnknownElement.callCallback (react-dom.development.js:542) at Object.invokeGuardedCallbackDev (react-dom.development.js:581) at invokeGuardedCallback (react-dom.development.js:438) at renderRoot (react-dom.development.js:10366) at performWorkOnRoot (react-dom.development.js:11014) at performWork (react-dom.development.js:10967) at batchedUpdates (react-dom.development.js:11086) at batchedUpdates (react-dom.development.js:2330) at dispatchEvent (react-dom.development.js:3421)
render @ Paper.js:101
finishClassComponent @ react-dom.development.js:7873
updateClassComponent @ react-dom.development.js:7850
beginWork @ react-dom.development.js:8225
performUnitOfWork @ react-dom.development.js:10224
workLoop @ react-dom.development.js:10288
callCallback @ react-dom.development.js:542
invokeGuardedCallbackDev @ react-dom.development.js:581
invokeGuardedCallback @ react-dom.development.js:438
renderRoot @ react-dom.development.js:10366
performWorkOnRoot @ react-dom.development.js:11014
performWork @ react-dom.development.js:10967
batchedUpdates @ react-dom.development.js:11086
batchedUpdates @ react-dom.development.js:2330
dispatchEvent @ react-dom.development.js:3421
> index.js:2177 The above error occurred in the component:
in Paper (created by SearchBar) in SearchBar (at BasicInformation.js:52) in label (at BasicInformation.js:50) in form (at BasicInformation.js:49) in BasicInformation (at PlayerEditView.js:274) in div (at PlayerEditView.js:273) in PlayerEditView (at PlayerCreationView.js:19) in PlayerCreationView (created by Route) in Route (at Main.js:16) in Switch (at Main.js:13) in div (at Main.js:12) in Main (at App.js:12) in div (at App.js:10) in App (at index.js:11) in Router (created by BrowserRouter) in BrowserRouter (at index.js:10)
Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
stack_frame_overlay_proxy_console @ index.js:2177
logCapturedError @ react-dom.development.js:9747
captureError @ react-dom.development.js:10540
renderRoot @ react-dom.development.js:10391
performWorkOnRoot @ react-dom.development.js:11014
performWork @ react-dom.development.js:10967
batchedUpdates @ react-dom.development.js:11086
batchedUpdates @ react-dom.development.js:2330
dispatchEvent @ react-dom.development.js:3421
Paper.js:101 Uncaught TypeError: Cannot read property 'prepareStyles' of undefined
at Paper.render (Paper.js:101)
at finishClassComponent (react-dom.development.js:7873)
at updateClassComponent (react-dom.development.js:7850)
at beginWork (react-dom.development.js:8225)
at performUnitOfWork (react-dom.development.js:10224)
at workLoop (react-dom.development.js:10288)
at HTMLUnknownElement.callCallback (react-dom.development.js:542)
at Object.invokeGuardedCallbackDev (react-dom.development.js:581)
at invokeGuardedCallback (react-dom.development.js:438)
at renderRoot (react-dom.development.js:10366)
at performWorkOnRoot (react-dom.development.js:11014)
at performWork (react-dom.development.js:10967)
at batchedUpdates (react-dom.development.js:11086)
at batchedUpdates (react-dom.development.js:2330)
at dispatchEvent (react-dom.development.js:3421)
I installed it : https://www.npmjs.com/package/material-ui & material-ui-search-bar@latest
from material-ui-search-bar.
Related Issues (20)
- FEATURE REQUEST: Give option to NOT clear the search when canceling search. HOT 2
- how to set color to input and searchbutton
- Forked this project, republished and willing to help with features HOT 7
- Does this project have support for material-ui 5 beta? HOT 3
- It is not working with latest version of @mui-material HOT 4
- About the datasource and auto complete in the action. HOT 2
- Material UI Search Bar is not compatible with React 17 and above HOT 1
- Icon Accessibility
- The original material button style lossed after I import the SearchBar
- How to install a module on react 17+? HOT 4
- Placeholder can go out of search bar container HOT 1
- Can we search without pressing enter ?
- @material-ui/icons/Clear need to install first? HOT 1
- onClearSearch is not triggered HOT 1
- Cannot use variant or any props on the input HOT 1
- inputRef can't be used HOT 1
- Integration with DataGrid HOT 1
- Can't seem to autofocus the searchbar HOT 5
- Cant change the Icon hover effect HOT 1
- unable to resolve dependency tree for React 17 HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material-ui-search-bar.