pro-mern-stack icon indicating copy to clipboard operation
pro-mern-stack copied to clipboard

Page 30 script error (-d doesn't exist. -i doesn't exist ...)

Open arrmixer opened this issue 7 years ago • 2 comments

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

arrmixer avatar Jun 21 '17 17:06 arrmixer

Thanks, Angel for pointing out the error.

vasansr avatar Jun 22 '17 04:06 vasansr

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.

arrmixer avatar Jun 22 '17 11:06 arrmixer