mdb-react-ui-kit icon indicating copy to clipboard operation
mdb-react-ui-kit copied to clipboard

Attempted import error: 'MDBAvatar' is not exported from 'mdbreact'.

Open yogendrajs opened this issue 6 years ago • 9 comments

First, I installed mdbreact package from npm. After adding the Component it is showing the following error. My React version is 16.12.0. Attempted import error: 'MDBAvatar' is not exported from 'mdbreact'.

Can anyone help me to resolve this issue?

yogendrajs avatar Jan 10 '20 12:01 yogendrajs

Same thing here. Have you found an answer yet?

PedroNunezCode avatar Jan 16 '20 03:01 PedroNunezCode

Same thing here. Have you found an answer yet?

Not yet. Hey contributors, can you pls help to resolve it?

yogendrajs avatar Jan 16 '20 04:01 yogendrajs

What kind of component do you use where you have that error?

pglejzer avatar Jan 16 '20 07:01 pglejzer

What kind of component do you use where you have that error?

Ya, I just wrote import { MDBAvatar } from "mdbreact; in one of my Component in React.js after installing it from this npm package. But, it is showing this error.

yogendrajs avatar Jan 16 '20 09:01 yogendrajs

MDBAvatar is available in the pro version of mdbreact. This error occurs because you're trying to import this in the free version.

pglejzer avatar Jan 16 '20 13:01 pglejzer

Oh, got it. Thanks!

yogendrajs avatar Jan 16 '20 13:01 yogendrajs

Actually I have faced the same problem, so simply I put img tag instead of MDBAvatar and it worked.

OussamaGhamian avatar Feb 12 '20 18:02 OussamaGhamian

What if I have the pro version and still have the error tag? How do I get rid of this error?

soltrenc avatar Jun 03 '20 23:06 soltrenc