Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'props' of null #1

Open
adrianleb opened this issue Feb 11, 2016 · 0 comments
Open

Uncaught TypeError: Cannot read property 'props' of null #1

adrianleb opened this issue Feb 11, 2016 · 0 comments

Comments

@adrianleb
Copy link

First of all great idea!

Unfortunately doesn't seem to be working over here, this is the after-webpack-pass output:

exports.default = function () {
  return function (ReactClass) {
    var ModifiedReactClass = ReactClass;
    var render = ModifiedReactClass.prototype.render;
    ModifiedReactClass.prototype.render = function () {
      var _render$apply = render.apply(this, arguments);

      var props = _render$apply.props;

      var renderedRest = _objectWithoutProperties(_render$apply, ['props']);

      return _extends({
        props: _extends({}, props, {
          className: (0, _dedupe2.default)(this.props.className, props.className),
          style: _extends({}, props.style, this.props.style)
        })
      }, renderedRest);
    };
    return ModifiedReactClass;
  };
};

react: "0.14.6",
babel: "~6.3.26",
babel-plugin-react-transform: "^2.0.0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant