Skip to content

Change share version in package.json to 0.6.x. instead of github master #1

Description

@jwlrs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions