mizzao / meteor-sharejs

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

Cannot read propertype 'type' of undefined #1

Closed geekyme closed 10 years ago

geekyme commented 10 years ago

Help! i got the following error when i tried to launch your demo app. I'm using a windows Operating system.

The same error also appear when I loaded the package into a different project to try out.

W2035-02:08:04.259(8)? (STDERR) C:\Users\shawnlim\Documents\Websites\meteorjs\me
teor-documents-demo\.meteor\local\build\programs\server\boot.js:194
W2035-02:08:04.574(8)? (STDERR) }).run();
W2035-02:08:04.575(8)? (STDERR)    ^
W2035-02:08:04.576(8)? (STDERR) TypeError: Cannot read property 'type' of undefi
ned
W2035-02:08:04.577(8)? (STDERR)     at Package (packages/sharejs\sharejs-server.
coffee:13:10)
W2035-02:08:04.578(8)? (STDERR)     at packages/sharejs.js:94:4
W2035-02:08:04.579(8)? (STDERR)     at packages/sharejs.js:103:3
W2035-02:08:04.579(8)? (STDERR)     at mains (C:\Users\shawnlim\Documents\Websit
es\meteorjs\meteor-documents-demo\.meteor\local\build\programs\server\boot.js:16
3:10)
W2035-02:08:04.587(8)? (STDERR)     at Array.forEach (native)
W2035-02:08:04.588(8)? (STDERR)     at Function._.each._.forEach (C:\Users\shawn
lim\AppData\Local\.meteor\tools\36f9aeca0e\lib\node_modules\underscore\underscor
e.js:79:11)
W2035-02:08:04.589(8)? (STDERR)     at C:\Users\shawnlim\Documents\Websites\mete
orjs\meteor-documents-demo\.meteor\local\build\programs\server\boot.js:80:5
=> Exited with code: 1
=> Meteor server restarted

the errors pop by on both meteor 0.6.6 (in another app of mine) and 0.6.5 (in your demo app)

mizzao commented 10 years ago

Sorry about that; was a strange case I didn't test in trying to make a quick fix to default database options.

I have updated both this package and the demo app to 0.6.6 in the process.