babel / example-node-server

Example Node Server w/ Babel
ISC License
2.84k stars 382 forks source link

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

Open mrdulin opened 7 years ago

mrdulin commented 7 years ago

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

iamclaytonray commented 7 years ago

+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.