Comments (5)
from mdb-react-ui-kit.
how can we reproduce this error? do you use free or pro version?
from mdb-react-ui-kit.
Hi Mattonit,
Please find the steps below -
- 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.
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:
- npx create-react-app your-app-name && cd your-app-name
- Add the necessary dependencies:
yarn add [email protected] --exact
yarn add [email protected] --exact
yarn add [email protected] --exact - "mdbreact": "git+https://github.com/mdbootstrap/React-Bootstrap-with-Material-Design.git"
- yarn
- 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'; - Import components you like and create Your own App
- yarn build
- cd build
- npx serve
from mdb-react-ui-kit.
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)
- Broken MDBCollapse component in version 2.1.0 HOT 1
- Dropdown menu position issue HOT 1
- TimePicker can not get the value I set HOT 1
- ReferenceError: document is not defined HOT 1
- Replace 'transition-property' with 'transition' HOT 2
- MDBDropdown has issue when using in react-styleguidist HOT 6
- Question: mdbreact vs mdb-react-ui-kit - which package is better? HOT 4
- cli is looking for react v17 HOT 1
- Runtime error HOT 1
- MDBModal keeps display:block after 2nd time closed HOT 7
- Module parse failed error HOT 2
- MDBCollapse keep height after animation ends HOT 2
- MDBCollapse does not have onHide and onShow events HOT 3
- uncaught TypeError: Failed to execute 'getComputedStyle' occurs and keeps racking up but doesnt crash anything HOT 7
- Failed to execute 'getComputedStyle' on 'Window' HOT 1
- Using MDBootstrap with next.js App Router HOT 1
- Error when installed version of chart.js is > 4.3.3
- Uncaught TypeError when setting leaveHiddenModal to false on MDBModal HOT 1
- Community & Migration HOT 1
- Warning in the console for MDBDataTable from mdbreact
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdb-react-ui-kit.