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

Latest meteor update breaks package #11

Open
danielparas opened this issue Mar 28, 2017 · 0 comments
Open

Latest meteor update breaks package #11

danielparas opened this issue Mar 28, 2017 · 0 comments

Comments

@danielparas
Copy link

Hi, thanks for this package!

Unfortunately, I recently updated to 1.4.3 and changes to the account package caused connectwith to break, throwing this error:

Uncaught TypeError: Cannot read property 'Facebook' of undefined at Object.Meteor.connectWith (mondora_connect-with.js?hash=767472b…:75)

Which refers to the following line within the Meteor.connectWith function:

var Service = typeof service === "string" ? Package[service][makePascalCased(service)] : service; // 39

I managed to bypass the issue by passing the Facebook object , that is available on the client as it seems to be loaded on the first line of accounts facebook source code

Meteor.connectWith(Facebook, {requestPermissions: []}, function(e){})

Hope this helps fix the package or anyone encountering a similar issue.

Dan

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

1 participant