mizzao / meteor-sharejs

Meteor smart package for transparently adding ShareJS editors to an app
MIT License
225 stars 53 forks source link

ReferenceError: Cannot access 'ShareJS' before initialization #101

Closed Shantanu-2318 closed 4 years ago

Shantanu-2318 commented 4 years ago

I first created an application via "meteor create" command and when added this pakage my application crashed displaying this error

ReferenceError: Cannot access 'ShareJS' before initialization at module (packages/mizzao:sharejs/sharejs-server.js:8:24) at fileEvaluate (packages\modules-runtime.js:336:7) at Module.require (packages\modules-runtime.js:238:14) at require (packages\modules-runtime.js:258:21) at D:\Workspace\web\course4\week (1)\textcircle\.meteor\local\build\programs\server\packages\mizzao_sharejs.js:130:15 at D:\Workspace\web\course4\week (1)\textcircle\.meteor\local\build\programs\server\packages\mizzao_sharejs.js:135:3 at D:\Workspace\web\course4\week (1)\textcircle\.meteor\local\build\programs\server\boot.js:401:38 at Array.forEach (<anonymous>) at D:\Workspace\web\course4\week (1)\textcircle\.meteor\local\build\programs\server\boot.js:226:21 at D:\Workspace\web\course4\week (1)\textcircle\.meteor\local\build\programs\server\boot.js:464:7 at Function.run (D:\Workspace\web\course4\week (1)\textcircle\.meteor\local\build\programs\server\profile.js:280:14) at D:\Workspace\web\course4\week (1)\textcircle\.meteor\local\build\programs\server\boot.js:463:13

Can anyone plz tel me where am I going wrong

edemaine commented 4 years ago

Did you try using edemaine:sharejs instead? That version fixes a bunch of bugs, though I don't recall offhand if this is one of them. (See the existing pull requests on this repo.)

Shantanu-2318 commented 4 years ago

Thank You Erik edemaine:sharejs package is working properly

On Sat, 13 Jun 2020, 5:29 pm Erik Demaine, notifications@github.com wrote:

Did you try using edemaine:sharejs instead? That version fixes a bunch of bugs, though I don't recall offhand if this is one of them. (See the existing pull requests on this repo.)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mizzao/meteor-sharejs/issues/101#issuecomment-643613613, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP5P3MX3E23WRUGW2RZKFW3RWNS3NANCNFSM4N425YMA .