When I attempt to run plunker_collab I'm getting:
/Users/USER/SOMEDIR/plunker/plunker_collab/index.coffee:33
model = sharejs.server.createModel({
^
TypeError: Object #<Object> has no method 'createModel'
at Object.<anonymous> (/Users/USER/SOMEDIR/plunker/plunker_collab/index.coffee:33:26)
at Object.<anonymous> (/Users/USER/SOMEDIR/plunker/plunker_collab/index.coffee:144:4)
at Module._compile (module.js:449:26)
at Object.require.extensions..coffee (/Users/USER/SOMEDIR/plunker/plunker_collab/node_modules/coffee-script/lib/coffee-script/coffee-script.js:30:21)
at Module.load (module.js:349:32)
at Function.Module._load (module.js:305:12)
at Module.require (module.js:357:17)
at require (module.js:373:17)
at Object.<anonymous> (/Users/USER/SOMEDIR/plunker/plunker_collab/server.js:5:14)
at Module._compile (module.js:449:26)
Doing a bit of sluething, I suspect that perhaps line 25 of index.coffee should not be
model = sharejs.server.createClient
but instead should be
model = sharejs.server.createModel
But if I make that change, I get a different error:
/Users/USER/SOMEDIR/plunker/plunker_collab/node_modules/share/node_modules/livedb/lib/index.js:83
throw new Error('Missing or invalid snapshot db');
^
Error: Missing or invalid snapshot db
at new exports.client (/Users/USER/SOMEDIR/plunker/plunker_collab/node_modules/share/node_modules/livedb/lib/index.js:83:11)
at Object.exports.client (/Users/USER/SOMEDIR/plunker/plunker_collab/node_modules/share/node_modules/livedb/lib/index.js:75:41)
at new ShareInstance (/Users/USER/SOMEDIR/plunker/plunker_collab/node_modules/share/lib/server/index.js:23:27)
at Object.exports.createClient (/Users/USER/SOMEDIR/plunker/plunker_collab/node_modules/share/lib/server/index.js:123:10)
at Object.<anonymous> (/Users/USER/SOMEDIR/plunker/plunker_collab/index.coffee:33:26)
at Object.<anonymous> (/Users/USER/SOMEDIR/plunker/plunker_collab/index.coffee:144:4)
at Module._compile (module.js:449:26)
at Object.require.extensions..coffee (/Users/USER/SOMEDIR/plunker/plunker_collab/node_modules/coffee-script/lib/coffee-script/coffee-script.js:30:21)
at Module.load (module.js:349:32)
at Function.Module._load (module.js:305:12)
~/apps/plunker/plunker_collab# node server.js
When I attempt to run plunker_collab I'm getting:
Doing a bit of sluething, I suspect that perhaps line 25 of index.coffee should not be
but instead should be
But if I make that change, I get a different error: