question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] @material-ui/lab shouldn't be required when not using Autocomplete

See original GitHub issue

The 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:closed
  • Created 4 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
lookfirstcommented, Mar 4, 2020

This is actually not fixed…

0reactions
lookfirstcommented, Sep 15, 2022

Closing, haven’t found a need to fix this in years…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found