[bug] @material-ui/lab shouldn't be required when not using Autocomplete
See original GitHub issueThe readme says to run yarn add mui-rff @material-ui/core @material-ui/pickers final-form react-final-form
to install all required dependencies. It also says to run yarn add @material-ui/lab
if using Autocomplete. I created a basic login form using MUI-RFF with only the TextField (no Autocomplete).
import { TextField } from "mui-rff";
However, I got a compilation error when building my project.
Module not found: Can't resolve '@material-ui/lab/Autocomplete' in '/node_modules/mui-rff/dist'
I therefore had to install @material-ui/lab.
Expected behavior @material-ui/lab shouldn’t be required unless Autocomplete is imported from “mui-rff”.
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (8 by maintainers)
Top Results From Across the Web
I couldn't use the Autocomplete from material-ui - Stack Overflow
I am getting the below error. Failed to compile. ./node_modules/@material-ui/lab/Autocomplete/Autocomplete.js Module not found: Can't ...
Read more >React Autocomplete component - Material UI - MUI
The autocomplete is a normal text input enhanced by a panel of suggested ... However, you can use different structures by providing a...
Read more >Demystifying Errors in MUI Autocomplete — part — I - Medium
Autocomplete is the new beast in the Material UI core package. ... It is the search cum input component. For search, we need...
Read more >How to Use The Autocomplete Component in Material-UI
We will also need to install the Material-UI lab. The Material-UI lab hosts components that are not quite ready to be moved to...
Read more >@material-ui/lab - npm
The lab has a peer dependency on the core components. If you are not already using Material-UI in your project, you can install...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is actually not fixed…
Closing, haven’t found a need to fix this in years…