danielstern / isomorphic-react

A simple but powerful React application built on a standards-compliant back-end
https://isomorphic-react-x.herokuapp.com/
380 stars 259 forks source link

Isomorphic-react not running in 2020. #29

Closed raydot closed 4 years ago

raydot commented 4 years ago

I can't get the course files to run. I get a lot of errors mostly related to the fact that Babel no longer supports es2015.

First error is a problem with Uglify:

ERROR in bundle.js from UglifyJs
Unexpected token: punc (}) [bundle.js:5644,0]

Then a MODULE_NOT_FOUND error from cross-env

{
  code: 'MODULE_NOT_FOUND'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! isomorphic-react@1.0.0 build: `cross-env webpack --config ./webpack.config.prod.babel.js`

It doesn't get much better from there. Any chance you're feeling like updating this course for 2020?

danielstern commented 4 years ago

Hello.

Try cloning the main repository with completed application (updated for Babel) and taking it from there.


From: Dave Kanter notifications@github.com Sent: January 15, 2020 12:38 PM To: danielstern/isomorphic-react isomorphic-react@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [danielstern/isomorphic-react] Isomorphic-react not running in 2020. (#29)

I can't get the course files to run. I get a lot of errors mostly related to the fact that Babel no longer supports es2015.

First error is a problem with Uglify:

ERROR in bundle.js from UglifyJs Unexpected token: punc (}) [bundle.js:5644,0]

Then a MODULE_NOT_FOUND error from cross-env

{ code: 'MODULE_NOT_FOUND' } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! isomorphic-react@1.0.0 build: cross-env webpack --config ./webpack.config.prod.babel.js

It doesn't get much better from there. Any chance you're feeling like updating this course for 2020?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/danielstern/isomorphic-react/issues/29?email_source=notifications&email_token=ABASA6AD7KUZ4PH5LNUGE4TQ55C2RA5CNFSM4KHHLAJKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IGNNCEQ, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABASA6HSVXJWXFTMYSCVVWDQ55C2RANCNFSM4KHHLAJA.

swapnilvjoshi commented 4 years ago

I was facing the same issue However I have disabled the uglify and the project works now.

image

GaddMaster commented 4 years ago

I had same issue. It was a line of code in the webpack file that minimizes the js. Needs be removed for and updated choice.

Dan

GaddMaster commented 4 years ago

Issue #17 shows solutions, exactly what I did!

raydot commented 4 years ago

I cloned the full version and took it from there as suggested above. Wasn't as exciting but...

I'm gonna close this although anyone who comes along later with questions please feel free to ask!