After getting frustrating from the react\_rails gem because of the lack of support for Commonjs modules, i'm testing the [react\_webpack\_rails](https://github.com/netguru/react_webpack_rails) gem from netguru. but since then i got an Invariant Violation.

For example, if i'm writing a simple Hello World component in ES6 syntax :

```
import React from 'react';

class tasksBox extends React.Component {
  render() {
    return <div>Hello World</div>;
  }
}

export default tasksBox;

```

raise these errors :

```
Warning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components).

Uncaught Error: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.

```

your help will be much appreciated, i can't figure where the error come from.