Skip to content

Commit

Permalink
Added missing node-sass and SSH2.
Browse files Browse the repository at this point in the history
Get process bnding error with line "ssh2 = require("ssh2")
Check with facebook/create-react-app#815
  • Loading branch information
Themacprod committed Oct 8, 2017
1 parent ad3878e commit aecdb72
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@
"express": "^4.13.4",
"font-awesome": "^4.6.3",
"jquery": "^2.2.2",
"node-sass": "^3.4.2",
"node-sass": "^3.13.1",
"react": "^0.14.8",
"react-bootstrap": "^0.30.3",
"react-dom": "^0.14.8",
"react-router": "^2.0.1",
"serve-favicon": "^2.3.0",
"ssh2": "^0.5.5",
"uglify-js": "^2.7.3"
},
"devDependencies": {
Expand Down
5 changes: 3 additions & 2 deletions react_components/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

"use strict";

var React = require("react");
var React = require("react"),
sshconnect = require("./sshconnect");

module.exports = React.createClass({
render: function() {
return React.DOM.div({
className: "app"
},
"Test"
React.createElement(sshconnect)
);
}
});
15 changes: 15 additions & 0 deletions react_components/sshconnect.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* global module:true */

"use strict";

var React = require("react"),
ssh2 = require("ssh2");

module.exports = React.createClass({
render: function() {
return React.DOM.div(
null,
"test"
);
}
});

0 comments on commit aecdb72

Please sign in to comment.