joshhayles free asked 2 years ago

Expected behavior npm start to bring up front-end on server Actual behavior npm start can't find file Resources (screenshots, code snippets etc.)

Krzysztof Wilk staff commented 2 years ago


Does this problem occur in the repository of MDB5 React or in the .zip package? Did you move to the app folder if you are using the repository?

Keep coding!

joshhayles free commented 2 years ago

Hi. I had to delete my react folder that was already set up because I’m doing a full stack project. Once I deleted that and used just the MDB one it worked fine. Thank you

mark-steven-au premium answered 2 years ago

Hi Have tried this as well in the following packages download MDB Free React as package Initially did not work (npm install) npm audit fix --force 40 vulnerabilities (11 moderate, 29 high) Started finally.

Then MDB-mdbreact-admin-pro as package from My Orders page Ver 5.2.0 Not found react-image-lightbox Not found react-chartjs-2 (package.json did not have it listed) too many errors to mention

Similar with Pro re-pro-master as package again many errors

And Pro mdb4-react-ui-kit-pro-advanced-master as package

none started using packages again with many errors

Using Node.js v17.7.2 Then downloaded and install Node 16.14.2 Visual Studio Code on Mac

Any ideas on why they are all failing other than the free one?

Not sure what I am missing on this.

Krzysztof Wilk staff commented 2 years ago


Could you paste the error you got in the console? Did you try installing the package with yarn or the npm i --legacy-peer-deps command?

Keep coding!

mark-steven-au premium commented 2 years ago

Tried initially npm then npm I --legacy-peer-deps.

So then did the following to try to ascertain the problem

delete everything uninstalled Chrome (suspected errors) install Chrome start from fresh

All tutorials say or infer use NPM so steps taken were

1 downloaded MDB Bootstrap Pro from admin page (react version) 5.2.0 package unzipped npm install code . npm start Failed to compile. ./src/pages/ChartsPage.js Module not found: Can't resolve 'react-chartjs-2' in '/Users/marksteven/Documents/sites/2022/MDB-3/MDB-React-Pro-npm 2/src/pages'

2 downloaded MDB4-REACT-UI-KIT-Pro-Advanced-5.2.0 terminal npm install code . npm start Failed to compile. ./src/pages/ChartsPage.js Module not found: Can't resolve 'react-chartjs-2' in '/Users/marksteven/Documents/sites/2022/MDB-3/mdb4-react-ui-kit-pro-advanced 2/src/pages'

downloaded MDB5-REACT-UI-KIT-Pro-Advanced-3.0.0 terminal npm install code . npm start worked!

downloaded MDB5-REACT-UI-KIT-Pro-Essential-1.1.0 terminal npm install code . npm start worked!

5 downloaded MDB Bootstrap Pro (react version) 5.2.0 package unzipped terminal yarn install code . yarn start Worked!

6 downloaded MDB4-REACT-UI-KIT-Pro-Advanced-5.2.0 yarn install worked!

7 downloaded MDB5-REACT-UI-KIT-Pro-Advanced-3.0.0 yarn install worked!

8 MDB5-REACT-UI-KIT-Pro-Essential-1.1.0 yarn install worked!

So not sure why but for me at least (and anyone reading) yarn worked and npm didn't Hope that helps someone and thanks Krzsztof for your help

Krzysztof Wilk staff commented 2 years ago

yarn package manager installs dependencies a little bit different than the npm one so I think that's the point - especially since there are many old dependencies in the MDB4 React package. Anyway, I'm glad I could help. If you have more questions - feel free to ask :)

Keep coding!

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: MDB5 3.0.0
  • Device: macOS
  • Browser: chrome
  • OS: Catalina
  • Provided sample code: No
  • Provided link: No