yuanyan / react-image

Enhanced Image Component for React.
MIT License
36 stars 5 forks source link

TypeError with React 0.14.5 #1

Closed kasbah closed 7 years ago

kasbah commented 8 years ago

My test component:

var Test = React.createClass({
  render: function () {
    return (
      <Image url='/images/logo.png' />
    );
  }
});

Using via npm and require I get:

TypeError: ({type:(function (e){
"use strict";
}), key:null, ref:null, _owner:null, _context:{}, _store:{validated:false, props:{src:"/images/logo.png", onLoad:(function (){}), onError:(function (){}), lazyOffset:0, placeholderSrc:"data:image/gif;base64,R0lGODlhEAAJAIAAAP///wAAACH5BAEAAAAALAAAAAAQAAkAAAIKhI+py+0Po5yUFQA7"}}}) is not extensible

Using via <script> directly from GitHub I get:

TypeError: srcSet is undefined
mbrevda commented 7 years ago

This project has been superseded by https://github.com/mbrevda/react-image. Please give it a try and see if your issues have been resolved!