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

How to verify problem 8? #103

Open
mgranados opened this issue Apr 29, 2016 · 23 comments
Open

How to verify problem 8? #103

mgranados opened this issue Apr 29, 2016 · 23 comments

Comments

@mgranados
Copy link

mgranados commented Apr 29, 2016

I see the HTML outputted is the right answer but by running learnyoureact verify I get the following error:
screen shot 2016-04-29 at 1 19 13 pm

@theatlasroom
Copy link

I'm getting this same issue too

@konato
Copy link

konato commented May 15, 2016

Same issue here to

rootulp referenced this issue in rootulp/nodeschool May 31, 2016
@koustuvsinha
Copy link

same issue!

@FukKwang
Copy link

FukKwang commented Jul 6, 2016

Same problem ! can anyone help ?

@Sticksword
Copy link

+1

@jsdavis
Copy link

jsdavis commented Jul 19, 2016

Same issue. Even copy/pasted the solution files and got failed verification

@a-metta
Copy link

a-metta commented Jul 25, 2016

is still still happening? what are the solutions that failed verification? I've just completed the tutorial and have been able to verify properly.

@Sticksword
Copy link

Sticksword commented Jul 26, 2016

I copy pasted the same things as the solution repo and still had verification errors. I don't know why

@a-metta
Copy link

a-metta commented Jul 26, 2016

this is my package.json:

{
"name": "learnyoureact",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"babel": "^5.8.23",
"body-parser": "^1.15.2",
"express": "^4.14.0",
"express-react-views": "^0.9.0",
"react": "^0.14.8",
"react-dom": "^0.14.8"
}
}

are the dependencies the same?

@Sticksword
Copy link

Sticksword commented Jul 26, 2016

Mine's this:

{
  "name": "learnyoureact",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "babel": "^5.8.23",
    "babel-preset-es2015": "^6.9.0",
    "babel-preset-react": "^6.11.1",
    "babelify": "^7.3.0",
    "body-parser": "^1.15.2",
    "browserify": "^13.0.1",
    "express": "^4.14.0",
    "express-react-views": "^0.9.0",
    "react": "^15.2.1",
    "react-dom": "^15.2.1"
  }
}

It would seem the only difference is react and react-dom. Do you think that's the cause?

@rossb
Copy link

rossb commented Aug 13, 2016

+1. I'm getting the same error during verification as in the screenshot above. Knowing little about React, it does look like something caused by latest React version producing different HTML than the workshop expects.

@a-metta
Copy link

a-metta commented Aug 13, 2016

yes I would try to install that version that i have posted considering how react has been going through some major changes

@rossb
Copy link

rossb commented Aug 13, 2016

Just a quick note to say I resolved this problem by deleting my node_modules folder, replacing the dependencies list in my local package.json with the one from the repo itself then running npm install. The problem verifies OK after doing that.

kgraves added a commit to kgraves/learnyoureact-lessons that referenced this issue Aug 25, 2016
also had to revamp dependencies in package.json because of incompatibilities
with the official solution being written for an older version of react (???)

see: workshopper/learnyoureact#103
@xaca
Copy link

xaca commented Sep 1, 2016

Funciona, borrando la carpeta de node_modules luego npm install como dice @rossb

@BlessYAHU
Copy link

setting your package json to 0.14.0 for react and react-dom packages (effectively, removing the ~), also works. Maybe there should be a notice put on the read me about this?

@jedau
Copy link

jedau commented Oct 5, 2016

@rossb 's suggestion solves it. It was literally right in front of us lol! Thanks for the reality check, mate.

@johnykov
Copy link

johnykov commented Jan 21, 2017

I have a problem with this one, I managed to verify solution, code is being copied from solutions dir. But I see proper html file only after first page load and then when I reload or I try to navigate to /bundle.js I see this error in console:

events.js:160
      throw er; // Unhandled 'error' event
      ^

TypeError: Cannot read property 'error' of undefined (While processing preset: "/Users/jankowalski/projects/nodeschool/learnyoureact/node_modules/babel-preset-es2015/index.js") while parsing file: /Users/jankowalski/projects/nodeschool/learnyoureact/app.js

I use @rossb's dependencies

@krischamp
Copy link

@hanskoff
I got the same pb as your's ... but following rossb's solution I got it right ...
just verify after the first time and it should be ok (or if it's still out, go to next CSS2 and verify back)

@nharrisanalyst
Copy link

im getting the same error as @hanskoff

when I verify it works but when I run node program.js
I get the error and can not load the page at localhost:3000

@kaz080
Copy link
Contributor

kaz080 commented Apr 10, 2017

@krischamp @nharrisanalyst
Maybe #111 will be of some help.

@dkonieczek
Copy link

Changing the following worked for me.

require('babel/register')({
    ignore: false
});

replace with:

require('babel/register');

@mjohnson518
Copy link

Hi,

I'm having an issue with learnyoureact Isomorphic exercise. I continue to get an error:

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

Can you assist? Thanks

@maxrumsey
Copy link

@mjohnson518 Have you tried this: #103 (comment)?

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