hexo-renderer-react icon indicating copy to clipboard operation
hexo-renderer-react copied to clipboard

Warning: React.createElement(...): Expected props argument to be a plain object

Open thom4parisot opened this issue 7 years ago • 1 comments

This is a warning sent by the hexo console.

For some reasons, when I log the props of my layout.jsx and index.jsx, they do not contain the expected locals such as page or site but they are given not an object but an integer, 2.

I have no idea why, considering it is a brand new hexo blog (@3.2.2) generated with hexo init, thus containing a single blog post.

thom4parisot avatar Sep 04 '16 12:09 thom4parisot

This looks like the local context passed to the renderer isn't what it used to be. I'll have to dig up some time to look at this further.

vanwagonet avatar Sep 14 '16 22:09 vanwagonet