Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why am I getting this error - 'You are calling withTheme(Component) with an undefined component.' -React JS

enter image description here

After installing some "material-ui" packages I'm getting this error. I tried several solutions but still not fixed. Help please?

like image 267
Kusal Kithmal Avatar asked May 31 '19 09:05

Kusal Kithmal


1 Answers

Solved!

I have deleted below import statement.

import {DatePicker, MuiPickersUtilsProvider} from "material-ui-pickers";

This solved my issue. Maybe this will help you to solve your problem as well.

like image 106
Kusal Kithmal Avatar answered Oct 19 '22 02:10

Kusal Kithmal