Topic: Build not working for production - White Page

Bertinat pro asked 6 years ago


Hi, I'm trying to generate a build to upload it to our dev server but i'm facing some problems, i hope you can help me. We bought the pro MDB for React. I detail the steps i followed reading your documentation. 1 - We download the MDB PRO files you sent to us. 2 - unzip files 3 - npm install 4 - npm run The dev server works ok I see this in the browser: The problems it's when i try to generate the build to work with the compiled code and then copy to our dev server. 1- npm run build Gives error (detailed in the console.log) WARNING in webpack: Using NoErrorsPlugin is deprecated. Use NoEmitOnErrorsPlugin instead. ​ I solved this but didnt generate the build folder. The solution after searching in your forum and your git page was with in this page: https://github.com/mdbootstrap/React-Bootstrap-with-Material-Design/issues/26
Specifically in : In package.json replace build:"webpack" to build: "react-scripts build" and run "npm run-script build". observe the build folder is created.
After this change I get the build folder created. 1- npm run-script build 2- npm install -g serve 3- serve -s build I get the web run but with a blank page as image below: NO javascript errors but i don't see nothing Theres a way to send you the build folder and the console logs with all the steps and corresponding messages? Hope you can help me to achieve to get the compiled code in build folder get working so we can start developing our application. If we cant do this the layout its useless Thank you in advance

Mikołaj Smoleński staff answered 6 years ago


Hi, We highly recommend to use our package as a dependency in Your own CRA (create-react-app). Did You try to install MDB following the steps from the quick start tutorial? Here's the link: https://mdbootstrap.com/react/5-min-quick-start/ If the problem still exists please check the version of Your webpack and try to use the same as we (3.5.5) Best Regards

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: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: Yes
Tags