Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get an Exception - Cannot read property 'find' of undefined #54

Closed
sunkay opened this issue Mar 15, 2015 · 3 comments
Closed

Get an Exception - Cannot read property 'find' of undefined #54

sunkay opened this issue Mar 15, 2015 · 3 comments

Comments

@sunkay
Copy link

sunkay commented Mar 15, 2015

Here is my mongol config... I dont know why it is getting undefined.

if (Meteor.isClient) {
Session.set("Mongol", {
'collections': ['Posts'],
'display': true,
'opacity_normal': ".7",
'opacity_expand': ".9",
'disable_warning': "false"
});
}

1.0.2 March 13th, 2015 installed

TypeError: Cannot read property 'find' of undefined
at null. (http://localhost:3000/packages/babrahams_editable-json.js?1047754ffc6951042e6ae766224ac96170c70dc1:560:27)
at http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:1808:16
at Object.Blaze._withCurrentView (http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:2043:12)
at viewAutorun (http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:1807:18)
at Tracker.Computation._compute (http://localhost:3000/packages/tracker.js?517c8fe8ed6408951a30941e64a5383a7174bcfa:296:36)
at new Tracker.Computation (http://localhost:3000/packages/tracker.js?517c8fe8ed6408951a30941e64a5383a7174bcfa:214:10)
at Object.Tracker.autorun (http://localhost:3000/packages/tracker.js?517c8fe8ed6408951a30941e64a5383a7174bcfa:487:11)
at Blaze.View.autorun (http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:1806:19)
at Blaze.TemplateInstance.autorun (http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:3116:20)
at Template.editableJSON.created (http://localhost:3000/packages/babrahams_editable-json.js?1047754ffc6951042e6ae766224ac96170c70dc1:558:10)

@arvi
Copy link

arvi commented Mar 15, 2015

Hi @sunkay @msavin. I'm having the same problem. It used to work until I ran meteor update last night. I can't get it to work despite attempts to downgrade versions by manually editing .meteor/versions file.

Exception from Tracker recompute function: Cannot read property 'find' of undefined
TypeError: Cannot read property 'find' of undefined
    at null.<anonymous> (http://localhost:3000/packages/babrahams_editable-json.js?1047754ffc6951042e6ae766224ac96170c70dc1:560:27)
    at http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:1808:16
    at Object.Blaze._withCurrentView (http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:2043:12)
    at viewAutorun (http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:1807:18)
    at Tracker.Computation._compute (http://localhost:3000/packages/tracker.js?517c8fe8ed6408951a30941e64a5383a7174bcfa:296:36)
    at new Tracker.Computation (http://localhost:3000/packages/tracker.js?517c8fe8ed6408951a30941e64a5383a7174bcfa:214:10)
    at Object.Tracker.autorun (http://localhost:3000/packages/tracker.js?517c8fe8ed6408951a30941e64a5383a7174bcfa:487:11)
    at Blaze.View.autorun (http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:1806:19)
    at Blaze.TemplateInstance.autorun (http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:3116:20)
    at Template.editableJSON.created (http://localhost:3000/packages/babrahams_editable-json.js?1047754ffc6951042e6ae766224ac96170c70dc1:558:10)

Upon checking my git changes in versions file, there were various modified/added related to mongol. I can't tell where the problem on dependencies/dependants package is.

+babrahams:editable-json@0.3.9
-dburles:mongo-collection-instances@0.3.1
+dburles:mongo-collection-instances@0.3.3
+gwendall:session-json@0.1.7
+lai:collection-extensions@0.1.3
-msavin:mongol@0.6.5
+msavin:mongol@1.0.2

Is there anyway I can downgrade to mongol 0.6.5 to test?

Thanks!

@arvi
Copy link

arvi commented Mar 15, 2015

Hi @sunkay @msavin. Finally! Got it working after being pointed to COMPATIBILITY.md while reading Additional Information section on the README.md. :)

// be sure to use collection names, not variables

I didn't notice it immediately since I headed straight to CHANGELOG.md after noticing git changes on mongol version. Wew!

@sunkay
Copy link
Author

sunkay commented Mar 16, 2015

perfect @arvi.. that's it. Thanks.

On Sun, Mar 15, 2015 at 7:12 PM arvi notifications@github.com wrote:

Hi @sunkay https://github.com/sunkay @msavin https://github.com/msavin.
Finally! Got it working after being pointed to COMPATIBILITY.md while
reading Additional Information section on the README.md. :)

// be sure to use collection names, not variables

I didn't notice it immediately since I headed straight to CHANGELOG.md
after noticing git changes on mongol version. Wew!


Reply to this email directly or view it on GitHub
#54 (comment).

@sunkay sunkay closed this as completed Mar 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants