ground-db icon indicating copy to clipboard operation
ground-db copied to clipboard

Error: GroundDB cannot access the DDP.Connection class (after Meteor upgrade to 1.2-rc.7)

Open divramod opened this issue 10 years ago • 18 comments

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

divramod avatar Aug 31 '15 06:08 divramod

The new version doesn't depend on the ground:util?

raix avatar Sep 02 '15 07:09 raix

+1 for this issue. Can I provide any details that may help?

chriswessels avatar Sep 02 '15 10:09 chriswessels

What version of ground db are you using?

raix avatar Sep 02 '15 11:09 raix

0.3.6

chriswessels avatar Sep 02 '15 11:09 chriswessels

use latest 0.3.12

raix avatar Sep 02 '15 12:09 raix

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

screen shot 2015-09-05 at 2 24 06 p m

jerocosio avatar Sep 05 '15 19:09 jerocosio

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.

image

Thanks!

povesteam avatar Sep 09 '15 10:09 povesteam

what version of ground:util?

raix avatar Sep 09 '15 11:09 raix

@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]

povesteam avatar Sep 09 '15 13:09 povesteam

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]

raix avatar Sep 09 '15 16:09 raix

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!

povesteam avatar Sep 10 '15 07:09 povesteam

Even if I upgrade to [email protected], the problems still persists.

povesteam avatar Sep 10 '15 07:09 povesteam

well - it's due to some reorganization of the internal meteor packages + revoked access to the LivedataTest package scope...

raix avatar Sep 10 '15 13:09 raix

Is there currently any workaround for this issue?

gerwinbrunner avatar Sep 15 '15 14:09 gerwinbrunner

I also have this problem, any way to solve this??

jerocosio avatar Sep 17 '15 00:09 jerocosio

Same issue.

pedrocatre avatar Sep 22 '15 16:09 pedrocatre

could you try 0.3.14-rc.3 (it should fix the issue - but havent had time to do QA)

raix avatar Sep 22 '15 18:09 raix

That version fixed the issue for me. Thanks!

pedrocatre avatar Sep 30 '15 20:09 pedrocatre