SideNav is throwing error


Topic: SideNav is throwing error

demystdata pro asked 7 years ago

Trying out this sidebar here: https://mdbootstrap.com/previews/docs/latest/html/navigation/side-nav-fixed-navbar-fixed.html but getting and error with React v16:  
warning.js:33 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.
Started added ErrorBoundaries and chipping away at the components from the example until I only had the SideNav left. All the other navigation elements don't throw an error. Below are the versions I used "react": "^16.3.2", "react-dom": "^16.3.2", "mdbootstrap": "^4.5.1", "mdbreact": "^4.3.0",

Mikołaj Smoleński staff answered 7 years ago

Hi, Are You sure that You're using the PRO version of MDB? If Yes, please share Your code with us by sending Your zipped project directly to me - m.smolenski@mdbootstrap.com. Regards

demystdata pro commented 7 years ago

I don't believe so. Was taking a look at this: <a href="https://mdbootstrap.com/react/5-min-quick-start/&quot" rel="nofollow">https://mdbootstrap.com/react/5-min-quick-start/&quot</a> But I don't have the credentials to access the git repo

demystdata pro commented 7 years ago

Turns out I needed the access token to use the sidebar. Thanks

Bartłomiej Malanowski staff pro premium commented 7 years ago

is the problem still persists?

Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: Yes
  • Provided link: Yes