[SpeedDial] unresolved dependencies in TypeScript when following docs #12120
Labels
component: speed dial
This is the name of the generic UI component, not the React module!
typescript
Expected Behavior
A working speed dial according to the docs when using TypeScript.
Current Behavior
Currently, I get the following error whenever I try to use the speed dial without having
@material-ui/icons
installed:Module not found: Can't resolve '@material-ui/icons/Add' in '../node_modules/@material-ui/lab/SpeedDialIcon'
The documentation does not specify that this is required, and it shouldn't be a requirement in my opinion, as this enforces users to use this dependency instead of using something like font awesome.
Steps to Reproduce (for bugs)
npx create-react-app app --scripts-version=react-scripts-ts
)@material-ui/core
and@material-ui/lab
as dependenciesSpeedDialIcon
componentCodesandbox example: https://codesandbox.io/s/n36wk5xzkp
This does not give the exact same error, but it definitely points towards the same issue.
Context
Wanting to use the speed dial icons without having
material-ui/icons
as a necessary dependency, as we use generic components for pre-bootstrapped functionality across our application.Your Environment
The text was updated successfully, but these errors were encountered: