Error: GroundDB cannot access the DDP.Connection class (after Meteor upgrade to 1.2-rc.7)
i got the following errors when adding
meteor add ground:db
before adding ground:db there was no error. can you help me here?
=> App running at: http://localhost:3000/
I20150831-08:31:30.747(2) (android:http://meteor.local/packages/ground_util.js:96) Uncaught Error: GroundDB cannot access the DDP.Connection class
I20150831-08:31:30.857(2) (android:http://meteor.local/packages/ground_db.js:19) Uncaught TypeError: Cannot read property '_groundUtil' of undefined
I20150831-08:31:30.857(2) (android:http://meteor.local/packages/global-imports.js:17) Uncaught TypeError: Cannot read property 'Ground' of undefined
I20150831-08:31:30.858(2) (android:http://meteor.local/app/client/lib/1-app.ng.js:11) Uncaught ReferenceError: AccountsTemplates is not defined
I20150831-08:31:30.905(2) (android:http://meteor.local/app/client/lib/4-run.ng.js:7) Uncaught ReferenceError: Meteor is not defined
I20150831-08:31:30.968(2) (android:http://meteor.local/app/client/templates/user/html/template.test.js:2) Uncaught ReferenceError: Template is not defined
I20150831-08:31:30.972(2) (android:http://meteor.local/app/client/template.index.js:2) Uncaught ReferenceError: Template is not defined
I20150831-08:31:30.978(2) (android:http://meteor.local/app/client/lib/0-both.js:1) Uncaught ReferenceError: Meteor is not defined
I20150831-08:31:30.980(2) (android:http://meteor.local/app/client/lib/3-subscriptions.js:3) Uncaught ReferenceError: Meteor is not defined
I20150831-08:31:31.405(2) (android:http://meteor.local/packages/softwarerero_accounts-t9n.js:42) Uncaught ReferenceError: UI is not defined
I20150831-08:31:39.671(2) (android:http://meteor.local/packages/ground_util.js:96) Uncaught Error: GroundDB cannot access the DDP.Connection class
I20150831-08:31:39.760(2) (android:http://meteor.local/packages/ground_db.js:19) Uncaught TypeError: Cannot read property '_groundUtil' of undefined
I20150831-08:31:39.768(2) (android:http://meteor.local/packages/global-imports.js:17) Uncaught TypeError: Cannot read property 'Ground' of undefined
I20150831-08:31:39.768(2) (android:http://meteor.local/app/client/lib/1-app.ng.js:11) Uncaught ReferenceError: AccountsTemplates is not defined
I20150831-08:31:39.850(2) (android:http://meteor.local/app/client/lib/4-run.ng.js:7) Uncaught ReferenceError: Meteor is not defined
I20150831-08:31:39.915(2) (android:http://meteor.local/app/client/templates/user/html/template.test.js:2) Uncaught ReferenceError: Template is not defined
I20150831-08:31:39.924(2) (android:http://meteor.local/app/client/template.index.js:2) Uncaught ReferenceError: Template is not defined
I20150831-08:31:39.928(2) (android:http://meteor.local/app/client/lib/0-both.js:1) Uncaught ReferenceError: Meteor is not defined
I20150831-08:31:39.931(2) (android:http://meteor.local/app/client/lib/3-subscriptions.js:3) Uncaught ReferenceError: Meteor is not defined
I20150831-08:31:40.055(2) (android:http://meteor.local/packages/softwarerero_accounts-t9n.js:42) Uncaught ReferenceError: UI is not defined
The new version doesn't depend on the ground:util?
+1 for this issue. Can I provide any details that may help?
What version of ground db are you using?
0.3.6
use latest 0.3.12
Hi, I am using the latest version (0.3.12) and I also get this error :s and all I see on my app is white

Hi!
I am also using the latest version ground:[email protected] in [email protected] and my app is white, with a lot of errors in console.
The errors keep appearing even if I comment out all Ground.Collection lines, and even if I clear my browser's Local Storage.
The server log is perfectly clean, errors only appear on client.

Thanks!
what version of ground:util?
@raix ground:[email protected]
These lines appear in .meteor/versions when running meteor add ground:db:
dispatch:[email protected]
dispatch:[email protected]
ground:[email protected]
ground:[email protected]
ground:[email protected]
ground:[email protected]
ground:[email protected]
ground:[email protected]
ground:[email protected]
[email protected]
raix:[email protected]
raix:[email protected]
Ah, I think this line is throwing https://github.com/GroundMeteor/util/blob/master/util.client.js#L7 causing the rest of the code to malfunction... You could try downgrading to ground:[email protected]
I downgraded to ground:util@=0.1.13, and the behavior is still the same, with the same errors.
This is where the exception is thrown:
// Access the DDP connection class // 5 // 40
try { // 6 // 41
_groundUtil.Connection = Package['ddp'].LivedataTest.Connection; // 7 // 42
} catch(err) { // 8 // 43
throw new Error('GroundDB cannot access the DDP.Connection class'); // 9 // 44
} // 10
I also tried versions .12, .11, .10, .9, .8, and the result is exactly the same.
Here is my list of packages. Can any of them be conflicting with ground:db?
kadira:flow-router
kadira:blaze-layout
materialize:materialize
http
accounts-base
raix:push
u2622:persistent-session
reactive-var
aslagle:reactive-table
copleykj:livestamp
fortawesome:fontawesome
peernohell:c3
numeral:numeral
miktam:loggly
standard-minifiers
meteor-base
mobile-experience
mongo
blaze-html-templates
session
jquery
tracker
logging
reload
random
ejson
spacebars
check
crosswalk
percolate:safe-reload
mdg:reload-on-resume
momentjs:moment
meteorhacks:kadira
ground:db
Thanks!
Even if I upgrade to [email protected], the problems still persists.
well - it's due to some reorganization of the internal meteor packages + revoked access to the LivedataTest package scope...
Is there currently any workaround for this issue?
I also have this problem, any way to solve this??
Same issue.
could you try 0.3.14-rc.3 (it should fix the issue - but havent had time to do QA)
That version fixed the issue for me. Thanks!