mastering-react icon indicating copy to clipboard operation
mastering-react copied to clipboard

Removed dependency on react/lib/ExecutionEnvironment

Open intrepion opened this issue 10 years ago • 3 comments

I encountered this error while watching video 3.2:

Error: cannot find module 'react/lib/ExecutionEnvironment'

So, since I barely know what I am doing, I copied a solution from one of the redux examples:

https://github.com/rackt/redux/tree/master/examples/todomvc

And it seems to work, but probably needs to be fixed in all the other branches, too.

intrepion avatar Oct 24 '15 04:10 intrepion

Just to clarify, the error I got here was this:

Error: Cannot find module 'react/lib/ExecutionEnvironment'

and here is the commit I copied from redux:

https://github.com/rackt/redux/commit/7f5199e01666ef7e257464f0889558eddf30c1f2

intrepion avatar Oct 24 '15 14:10 intrepion

Again, I don't know if this is right!

intrepion avatar Oct 24 '15 14:10 intrepion

@intrepion this is interesting. You got that error because you're not running the exact version of React 0.14 that I am (I was on 0.14-beta1), and it seems things got shifted around for 0.14 final release.

However I do really like the redux solution to this problem. I'll need to figure out how we can fix this both here in the repository, but also in the video series.

hojberg avatar Oct 24 '15 14:10 hojberg