Cannot Find Method 'attach' For Sharejs Object
While following the tutorial link https://github.com/share/ShareJS/wiki/Tutorial%3A-The-Basics when i do the final $node index.js I get the following error. /home/devilz/Project/
Solution 1:
The attach method has been deprecated in the latest version (0.7) and the documentation has not yet been updated to reflect this.
I think you've got two options to fix this. The simplest is to revert to version 0.6 using npm. Go to your working directory and:
- Uninstall your current version:
npm uninstall share
- Install the previous version which corresponds to existing documentation:
npm install share@0.6.3
The alternative is to dip into the source code on github and figure out how the author intends you to create a server instance in 0.7 onwards
Post a Comment for "Cannot Find Method 'attach' For Sharejs Object"