diff --git a/packages/react-server-cli/src/cli.js b/packages/react-server-cli/src/cli.js index acfa5816d..5e661fa71 100755 --- a/packages/react-server-cli/src/cli.js +++ b/packages/react-server-cli/src/cli.js @@ -1,4 +1,4 @@ require("babel-core/register"); const cli = require("."); -cli.parseCliArgs().then(cli.run); +cli.parseCliArgs().then(cli.run).catch(console.error); diff --git a/packages/react-server-cli/src/commands/init.js b/packages/react-server-cli/src/commands/init.js index dfe1c9f74..98b803b75 100644 --- a/packages/react-server-cli/src/commands/init.js +++ b/packages/react-server-cli/src/commands/init.js @@ -12,6 +12,7 @@ const DEPENDENCIES = [ // TODO: Modernize our peer deps and remove versions here. "react@~0.14.2", "react-dom@~0.14.2", + "superagent@1.8.4", ] const CONFIG = { diff --git a/packages/react-server-examples/bike-share/package.json b/packages/react-server-examples/bike-share/package.json index 568f5e41f..61b6a179e 100644 --- a/packages/react-server-examples/bike-share/package.json +++ b/packages/react-server-examples/bike-share/package.json @@ -14,7 +14,8 @@ "react": "~0.14.2", "react-dom": "~0.14.2", "react-server": "^0.4.5", - "react-server-cli": "^0.4.5" + "react-server-cli": "^0.4.5", + "superagent": "1.8.4" }, "devDependencies": { "babel-preset-react-server": "^0.4.4" diff --git a/packages/react-server-examples/hello-world/package.json b/packages/react-server-examples/hello-world/package.json index 55b299e4f..a51e14276 100644 --- a/packages/react-server-examples/hello-world/package.json +++ b/packages/react-server-examples/hello-world/package.json @@ -18,6 +18,7 @@ "react": "~0.14.2", "react-dom": "~0.14.2", "react-server": "~0.4.5", - "react-server-cli": "~0.4.5" + "react-server-cli": "~0.4.5", + "superagent": "1.8.4" } } diff --git a/packages/react-server-examples/redux-basic/package.json b/packages/react-server-examples/redux-basic/package.json index 4148739d8..37e4f10f6 100644 --- a/packages/react-server-examples/redux-basic/package.json +++ b/packages/react-server-examples/redux-basic/package.json @@ -17,7 +17,8 @@ "react-redux": "^4.4.5", "react-server": "^0.4.5", "react-server-cli": "^0.4.5", - "redux": "^3.5.2" + "redux": "^3.5.2", + "superagent": "1.8.4" }, "devDependencies": { "babel-preset-react-server": "^0.4.4"