Git Product home page Git Product logo

Comments (5)

praveenpandeyrepublic avatar praveenpandeyrepublic commented on May 11, 2024

screen shot 2018-03-27 at 7 38 47 pm

from mdb-react-ui-kit.

mattonit avatar mattonit commented on May 11, 2024

how can we reproduce this error? do you use free or pro version?

from mdb-react-ui-kit.

praveenpandeyrepublic avatar praveenpandeyrepublic commented on May 11, 2024

Hi Mattonit,

Please find the steps below -

  1. Download the MDB Pro zip.
    2.npm install
    3.npm start -> Works fine on localhost

4.In package.json replace build:"webpack" to build: "react-scripts build" and run "npm run-script build".
observe the build folder is created.
5.use "serve -s build" to get the IP
6. Paste the IP in the browser -> shows a empty index.html.

Does this require config changes for server deployment, we are new to React and MDBootstrap, we have been struggling with this issue without any result and help.

from mdb-react-ui-kit.

smolenski-mikolaj avatar smolenski-mikolaj commented on May 11, 2024

Hi,

First of all we suggest to make a build version with create-react-app. The steps to reproduce are the same as You wrote, just instead of downloading only our project You should add it to CRA as a dependency and then create Your own app.

This should work correctly:

  1. npx create-react-app your-app-name && cd your-app-name
  2. Add the necessary dependencies:
    yarn add [email protected] --exact
    yarn add [email protected] --exact
    yarn add [email protected] --exact
  3. "mdbreact": "git+https://github.com/mdbootstrap/React-Bootstrap-with-Material-Design.git"
  4. yarn
  5. Inside src/index.js file make the necessary imports right beneath the import ReactDOM... statement:
    import 'font-awesome/css/font-awesome.min.css';
    import 'bootstrap/dist/css/bootstrap.min.css';
    import 'mdbreact/dist/css/mdb.css';
  6. Import components you like and create Your own App
  7. yarn build
  8. cd build
  9. npx serve

from mdb-react-ui-kit.

virtualstyle avatar virtualstyle commented on May 11, 2024

It seems quite odd to me that I would have to manually add font-awesome and other dependencies. I mean, if your package has dependencies, shouldn't they be part of the package install?

from mdb-react-ui-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.