Topic: The pro version of Select is not working properly in my code

mohammad shahid free asked 5 years ago


Failed to compile.

./src/components/Checkout.jsx Attempted import error: 'MDBSelect' is not exported from 'mdbreact'.


Piotr Glejzer staff commented 5 years ago

Hi,
can you update to the latest version? Thanks. Have a nice day.


tns free answered 5 years ago


Hi, i have same issue here, my console log:

Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

In VS Code imports are linked correctly, but app crashed, if I want call MDBSelect component. We have used free version before, but there is no MDBSelect component.

I tried datepicker also and same result.


Piotr Glejzer staff commented 5 years ago

Hi,

may you check this related topics? https://github.com/ReactTraining/react-router/issues/4477

https://github.com/facebook/react/issues/12214

https://stackoverflow.com/questions/42813342/react-createelement-type-is-invalid-expected-a-string

You probably imported or exported incorrectly.

Best,Piotr



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.19.1
  • Device: Macbook
  • Browser: Chrome
  • OS: IOS
  • Provided sample code: No
  • Provided link: No