pro-mern-stack
pro-mern-stack copied to clipboard
Page 30 script error (-d doesn't exist. -i doesn't exist ...)
In Listing 2-6, the command line parameters should have double-dashes rather than single dashes. The repository code is correct, the book has an error.
Correct:
"compile": "babel src --presets react --out-dir static",
"watch": "babel src --presets react --out-dir static --watch",
Incorrect (in the book):
"compile": "babel src -presets react -out-dir static",
"watch": "babel src -presets react -out-dir static -watch",
When using the incorrect script lines, you will get this error in the terminal:
-d doesn't exist. -i doesn't exist. -r doesn't exist. -w doesn't exist. -a doesn't exist. -t doesn't exist. -c doesn't exist. -h doesn't exist
Thanks, Angel for pointing out the error.
Hey your welcome Vasan. Thanks for taking the time to write the book. It's great so far! 🙌🏼
Angel
Sent from my iPhone
On Jun 22, 2017, at 12:59 AM, Vasan Subramanian [email protected] wrote:
Thanks, Angel for pointing out the error.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.