Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page 30 dash problem in package.json #32

Open
cTallberg opened this issue Sep 25, 2017 · 0 comments
Open

Page 30 dash problem in package.json #32

cTallberg opened this issue Sep 25, 2017 · 0 comments

Comments

@cTallberg
Copy link

Thanks for a great book.

Listing 2.6 did not work for me:

"scripts": {
"compile": "babel src –presets react –out-dir static",
"watch": "babel src –presets react –out-dir static –watch",
"test": "echo "Error: no test specified" && exit 1"
},

If I changed it to:

"scripts": {
"compile": "babel src --presets react --out-dir static",
"watch": "babel src --presets react --out-dir static --watch",
"test": "echo "Error: no test specified" && exit 1"
},

Then only I could run compile and watch.

One more thing. One typo on this sentence on the same page:
"Go ahead and run the new command using npm watch."
The right command should be "npm run watch".

Took long time for me to figure out this problems :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant