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

Cannot pass ISOMORPHIC (lesson 8) #127

Open
sr6033 opened this issue Jun 13, 2017 · 12 comments
Open

Cannot pass ISOMORPHIC (lesson 8) #127

sr6033 opened this issue Jun 13, 2017 · 12 comments

Comments

@sr6033
Copy link

sr6033 commented Jun 13, 2017

I cannot pass the ISOMORPHIC test even after using the official solutions. My dependencies are same as shown in your git repo.

screenshot from 2017-06-14 01-05-48

@sr6033
Copy link
Author

sr6033 commented Jun 14, 2017

Issue is solved by installing the dependencies globally.

npm install -g browserify babelify babel-preset-react babel-preset-es2015

@sr6033 sr6033 closed this as completed Jun 14, 2017
@DusanSacha
Copy link
Contributor

Hi @sr6033,
thank you for reporting this issue and also for the solution you provided.

I actually tried to simulate your issue and ran into same problems. I haven't looked into deep yet but I tried also install the packages globally and it didn't solve the issue. I think it must be something with server side rendering coding.

Would you be able to provide more details how did you overcome the issue?

Thank you!

Dusan

@DusanSacha DusanSacha reopened this Jul 22, 2017
@sr6033
Copy link
Author

sr6033 commented Jul 23, 2017

I will have to look into it again since it was long back. I will simulate the issue and check if the fix is working in my system and what are the steps. If the fix doesn't work, the issue will remain open.

@Martialis39
Copy link

Unfortunately I have the issue as well. The error is

var body = DOM.body;
^
TypeError: Cannot read property 'body' of undefined

@JakeH91
Copy link

JakeH91 commented Oct 10, 2017

Hey @Martialis39 ,

Oh man I was having this same problem for hours yesterday. Was so frustrating. I was looking through all these solutions and everything was almost working, but then would raise some other issue. I was going deeper and deeper into these rabbit holes all day yesterday and it was really putting me off continuing.

In the end, I went back to the previous exercise. I deleted anything to do with exercise 8 and went forwards from there. Then, once everything was working for exercise 7, I start 8 again. Everytime I changed any code, I ran 'node program.js 3000 Milk 13:00' (or just refreshed the page), to check it was still working. Then I could see exactly what went wrong, and was able to fix it immediately if there was ever a problem.

I would suggest trying that anyway. I'm just a beginner, so can't give you anymore detailed a solution than that.

Good Luck!

@noxbxx
Copy link

noxbxx commented Nov 26, 2017

我也遇到了这样的问题
var body = DOM.body;
^

TypeError: Cannot read property 'body' of undefined
这个原因是是那么呢

好像是本地的ip地址修改了

@afreeman123
Copy link

I have been having similar issues. From a high level point of view, I believe this exercise is outdated as React.DOM is now deprecated.

To actually get your program running, you can use React.createFactory(elementName) for each element defined.

E.g. var div = React.createFactory('div')

However, this does not pass when verifying the code.

@zkbaum
Copy link

zkbaum commented Jun 2, 2018

I am also getting
var body = DOM.body;
^
TypeError: Cannot read property 'body' of undefined

Which is frustrating since it seems like if we can't fix this, we can't do the rest of the workshop :(

@sr6033
Copy link
Author

sr6033 commented Jun 4, 2018

Try redoing from previous exercise and keep checking for errors in the page.

@cqcmdwym
Copy link

cqcmdwym commented Sep 18, 2018

TypeError: Cannot read property 'body' of undefined

Is caused by react package out of date

enderandpeter added a commit to enderandpeter/learnyoureact that referenced this issue Nov 25, 2018
- The solution for the *Isomorphic* exercise does not pass its own test.
  This discussion is usefu: workshopper/learnyoureact#127
  It looks like react-dom may be deprecated, but if anything node is saying
  that `React.DOM` is null. We're going to try the other react workshop for now.
@mjohnson518
Copy link

I am also getting
var body = DOM.body;
^
TypeError: Cannot read property 'body' of undefined

Is there any update on this issue?

@neutraali
Copy link

I'm just getting the screen flooded with:

(node:11374) TimeoutOverflowWarning: 4294967296000 does not fit into a 32-bit signed integer.
Timer duration was truncated to 2147483647.

... Until the thing eventually crashes with a connection error.

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

10 participants