Topic: 'MDBSelect' was not found in 'mdb-react-ui-kit'
                  
                  mravandoust
                  free
                  asked 3 years ago
                
I tried to use MDBSelect in my React project, but I encountered the following error:
export 'MDBSelect' (imported as 'MDBSelect') was not found in 'mdb-react-ui-kit'
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: MDB5 4.1.0
 - Device: Desktop
 - Browser: chrome
 - OS: 11
 - Provided sample code: No
 - Provided link: No
 
Krzysztof Wilk staff commented 3 years ago
Hi!
Can you import other components? Are you sure you have the pro package installed? Can you run
yarnornpm ionce again to make sure everything is installed properly and check if the problem still occurs?mravandoust free commented 3 years ago
Hi Yes I can run npm i and I used (MDBContainer, MDBNavbar, MDBNavbarBrand, MDBNavbarToggler, MDBIcon, MDBNavbarNav, MDBNavbarItem, MDBNavbarLink, MDBBtn, MDBDropdown, MDBDropdownToggle, MDBDropdownMenu, MDBDropdownItem, ....). It doesn't only work for 'MDBselect'. I downloaded and installed the package that is put in the React docs.
Krzysztof Wilk staff commented 3 years ago
Can you share your
package.jsonfile with me? Or even put the project on GitHub (if it is possible) so I can check what's wrong?mravandoust free commented 3 years ago
This is my package.json file's content :
{ "name": "react-mdb", "version": "0.1.0", "private": true, "dependencies": { "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.3.0", "@testing-library/user-event": "^13.5.0", "mdb-react-ui-kit": "^4.1.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "5.0.1", "web-vitals": "^2.1.4" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" }, "eslintConfig": { "extends": [ "react-app", "react-app/jest" ] }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] } }
Wojciech Staniszewski staff commented 3 years ago
Could you create a repository with this problem? For example on GitHub.