babel/example-node-server

Error: Couldn't find preset "" relative to directory "/Users/xxx/workspace/react-server-boilerplate/server"

mrdulin opened this issue · 1 comments

What's going on?

"scripts": {
    "start": "nodemon server/index.js --exec babel-node --presets es2015,stage-0"
  },

I think the readme.md file is wrong.

The correct script is:

"scripts": {
    "start": "nodemon server/index.js --exec babel-node --presets=es2015,stage-0"
  },

= symbol

+1 on your comment. For anyone who misses a small difference, this post has stage-0 and if you went by the repo, you installed stage-2. Just make sure your dependencies match with your .babelrc and use the correct script pointed out by @mrdulin

This issue should be closed now.