Closed pm5 closed 9 years ago
I can confirm - I also had the same issue. Downgrading to React 0.12.2 (as in the example) fixed for me.
Will look into this and try and reproduce it.
One clarification though... Are the file extensions .jsx
or is it something else? I noticed the snippet above was using build.es6
If anyone has a fix feel free to share as well.
@pm5 I noticed you added a requireIgnore
for webpack as well. Is that a common issue also?
I don't know about @pm5 but I was using .jsx
extensions for templates.
@pm5 and @jamiecollinson
I've updated the dependencies and the component creation process in upgrade-react-0.13
branch.
I've added babel transformation option to allow better es6 support as well.
Would be great if you guys can try it out and see if it fixes your issues.
Thanks
Changes released in v0.2.0
One of our projects used React 0.13.1 with JSX and ES6. When building metalsmith the following warning was raised:
Downgrade to React 0.12.x and everything was fine.
This is probably because in React 0.13, if you use JSX you must not wrap the component with
React.createFactory()
. But I am not 100% sure if this was the cause.