Skip to content

Empty classnames despite installing all the correct dependancies? #94

@jh97uk

Description

@jh97uk
  "name": "myapp",
  "version": "0.1.0",
  "private": true,
  "devDependencies": {
    "css-loader": "^0.26.2",
    "npm": "^4.3.0",
    "react-scripts": "0.9.2",
    "style-loader": "^0.13.2"
  },
  "dependencies": {
    "babel-polyfill": "^6.23.0",
    "classnames": "^2.2.5",
    "flexboxgrid": "^6.3.1",
    "material-ui": "^0.17.0",
    "react": "^15.4.2",
    "react-dom": "^15.4.2",
    "react-flexbox-grid": "^0.10.2",
    "react-router": "^3.0.2",
    "react-tap-event-plugin": "^2.0.1"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"
  }
}

Is my package.json, followed all the instructions on the readme. Not getting any errors or warnings, just no class names when I use the elements like so:

import React from 'react';
import ReactDOM from 'react-dom';
import {Grid, Row, Col} from 'react-flexbox-grid'
class Dashboard extends React.Component{
  render(){
    return (
      <Grid>
        <Row>
          <Col xs={6} md={3}>
            1
          </Col>
          <Col xs={6} md={3}>
            1
          </Col>
        </Row>
      </Grid>
    )
  }
}
export default Dashboard;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions