Skip to content

Instantly share code, notes, and snippets.

C:\Users\Jareth\AppData\Roaming\npm\node_modules\webpack\node_modules\webpack-core\lib\LoadersList.js:7
this.list.forEach(function(element) {
^
TypeError: this.list.forEach is not a function
at new LoadersList (C:\Users\Jareth\AppData\Roaming\npm\node_modules\webpack\node_modules\webpack-core\lib\LoadersList.js:7:12)
at new NormalModuleFactory (C:\Users\Jareth\AppData\Roaming\npm\node_modules\webpack\lib\NormalModuleFactory.js:16:17)
at Compiler.createNormalModuleFactory (C:\Users\Jareth\AppData\Roaming\npm\node_modules\webpack\lib\Compiler.js:369:28)
at Compiler.newCompilationParams (C:\Users\Jareth\AppData\Roaming\npm\node_modules\webpack\lib\Compiler.js:382:29)
at Compiler.compile (C:\Users\Jareth\AppData\Roaming\npm\node_modules\webpack\lib\Compiler.js:389:20)
var React = require('react');
var VoteButton = React.createClass({
getInitialState: function(){
return{
voteButtonText: ''
}
nComponentDidMount: function(){
var self = this;
self.state.socket.on('time', function(t) {
self.setState({time: t});
if(self.state.time > 0 && self.props.storyOver == false){
self.setState({duringRound: true});
}else{
var React = require('react');
var VoteWords = React.createClass({
getInitialState: function(){
return{
votes: []
}
},
var React = require('react');
var VoteWords = React.createClass({
getInitialState: function(){
return{
votes: []
}
},
var React = require('react');
var VoteWords = React.createClass({
getInitialState: function(){
return{
votes: []
}
},
var check = (props.chosenWord==vote.word);
return votes.map(function(vote) {
return <a className={classNames('btn', { btn-success: check},{btn-primary: !check})} key={vote.id} onClick={onclick}> {vote.word} <span className="badge">{vote.count}</span> </a>
});
var Set = require("collections/set");
var gameList = {};
function gameTiwas() {
this.time = 0;
};
function gameRp() {
this.time = 0;
module.exports = function() {
const app = this;
const gameService = app.service('game');
gameService.create(null, "tiwas", "tiwas");
gameService.create(null, "rp", "rp");
gameService.create(null, "", "tiwas");
gameService.get("rp").then((game) => {console.log(game.time)});
gameService.get("tiwas").then((game) =>{console.log(game)});
@Jtmaca9
Jtmaca9 / nodejs-tcp-example.js
Created March 13, 2017 02:54 — forked from tedmiston/nodejs-tcp-example.js
Node.js tcp client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');