bigardone / phoenix-react-redux-template

Application template for SPAs with Phoenix, React and Redux
MIT License
130 stars 14 forks source link

module is not defined #3

Closed winkler1 closed 8 years ago

winkler1 commented 8 years ago

Looks like I'm running into every noob issue in the book :)

$ node -v
v4.2.6
$ npm -v
2.14.12

I got error: Compiling of web/static/js/app.js failed. Couldn't find preset "es2015" relative to directory "web/static/js", googled and found http://stackoverflow.com/questions/34345573/couldnt-find-preset-es2015-relative-to-directory-web-static-js. Fixed by npm install --save-dev babel-preset-es2015 (have found npm3 slow/cpu hog on another machine, so not in a hurry to upgrade)

Now getting- image

bigardone commented 8 years ago

Hey @winkler1 thank you very much, good catch! I've solved it in this new commit:

https://github.com/bigardone/phoenix-react-redux-template/commit/8d684be9cb9f537795bb86d5a58fe4191d6e3f97

Cheers!