DigitalRiver / react-atlas

Composable React components with CSS Modules.
http://digitalriver.github.io/react-atlas/
MIT License
38 stars 25 forks source link

0.1.0-rc does not work on MacOS #766

Closed hbowden closed 6 years ago

hbowden commented 6 years ago

When using the new 0.1.0-rc branch on MacOS I get the error:


    Button.js:6 Uncaught TypeError: Cannot read property 'PureComponent' of undefined
    at Object.r.exports (Button.js:6)
    at e (Button.js:1)
    at Object.r.exports (Button.js:6)
    at e (Button.js:1)
    at r.exports (Button.js:1)
    at Object.<anonymous> (Button.js:1)
    at t (bootstrap:19)
    at Object.<anonymous> (app.js:5)
    at t (bootstrap:19)
    at bootstrap:83```

I get the same error for every component.
hbowden commented 6 years ago

import ReactDOM from "react-dom";
// import { TextField } from "react-atlas/lib/TextField/TextField.js";
import Button from "react-atlas/lib/Button/Button.js";

class App extends React.PureComponent {
    submitHandler = (data) => {

    }

    render() {
      return (
        <div>
           <form onSubmit={this.submitHandler} >
            {/* <TextField id="username" name="username" placeholder="Username"/>
            <TextField id="password" name="password" placeholder="Password" /> */}
            <Button type="submit">Login</Button>
          </form>
        </div>
    );
  }
}

ReactDOM.render(App, document.getElementById('kawishiwi'));```
hbowden commented 6 years ago
  <head>
    <title>Deimos Login</title>
    <script src="/js/deimos.js"></script>
  </head>
  <body>
    <div id="kawishiwi"></div>
  </body>
</html>
hbowden commented 6 years ago

Actually it does I misconfigured webpack.