Topic: export 'MDBChart' (imported as 'MDBChart') was not found in 'mdb-react-ui-kit'
Yohana Habsari priority asked 2 years ago
Expected behavior MDBChart
Actual behavior export 'MDBChart' (imported as 'MDBChart') was not found in 'mdb-react-ui-kit'
Resources (screenshots, code snippets etc.) export 'MDBChart' (imported as 'MDBChart') was not found in 'mdb-react-ui-kit' (possible exports: MDBAccordion, MDBAccordionItem, MDBBadge, MDBBreadcrumb, MDBBreadcrumbItem, MDBBtn, MDBBtnGroup, MDBCard, MDBCardBody, MDBCardFooter, MDBCardGroup, MDBCardHeader, MDBCardImage, MDBCardLink, MDBCardOverlay, MDBCardSubTitle, MDBCardText, MDBCardTitle, MDBCarousel, MDBCarouselCaption, MDBCarouselElement, MDBCarouselInner, MDBCarouselItem, MDBCheckbox, MDBCol, MDBCollapse, MDBContainer, MDBDropdown, MDBDropdownDivider, MDBDropdownHeader, MDBDropdownItem, MDBDropdownLink, MDBDropdownMenu, MDBDropdownToggle, MDBFile, MDBFooter, MDBIcon, MDBInput, MDBInputGroup, MDBListGroup, MDBListGroupItem, MDBModal, MDBModalBody, MDBModalContent, MDBModalDialog, MDBModalFooter, MDBModalHeader, MDBModalTitle, MDBNavbar, MDBNavbarBrand, MDBNavbarItem, MDBNavbarLink, MDBNavbarNav, MDBNavbarToggler, MDBPagination, MDBPaginationItem, MDBPaginationLink, MDBPopover, MDBPopoverBody, MDBPopoverHeader, MDBProgress, MDBProgressBar, MDBRadio, MDBRange, MDBRipple, MDBRow, MDBScrollspy, MDBScrollspyNavItem, MDBScrollspyNavLink, MDBScrollspyNavList, MDBScrollspySection, MDBSpinner, MDBSwitch, MDBTable, MDBTableBody, MDBTableHead, MDBTabs, MDBTabsContent, MDBTabsItem, MDBTabsLink, MDBTabsPane, MDBTextArea, MDBTooltip, MDBTypography, MDBValidation, MDBValidationItem)
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Opened
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB React
- MDB Version: MDB5 4.0.0
- Device: PC
- Browser: chrome
- OS: WIndows
- Provided sample code: No
- Provided link: No
Krzysztof Wilk staff commented 2 years ago
Hi!
Could you remove
node_modules
catalog,yarn.lock
orpackage-lock.json
, runnpm cache clean --force
oryarn cache clean
and reinstall the package? If not - could you specify which package you use? I checked that on pro-essential (both with typescript and not) and everything seems to work properly.Yohana Habsari priority commented 2 years ago
already did your suggestion still happening ; I use this code from https://mdbootstrap.com/docs/b5/react/data/charts/ and use the package mdbreact-5.2.0.tgz from my membership file
Krzysztof Wilk staff commented 2 years ago
Hi!
The mdbreact-5.2.0.tgz package is an older version of MDB - MDB4. You are checking the documentation for the latest one - MDB5 React (which is in version 4.0.0 currently). Check this page to learn how to use charts in MDB4 React :) - https://mdbootstrap.com/docs/react/advanced/charts/