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

Property 'default_connection' does not exist on type 'typeof Meteor' #1571

Closed
5 tasks
atd opened this issue Feb 24, 2017 · 2 comments
Closed
5 tasks

Property 'default_connection' does not exist on type 'typeof Meteor' #1571

atd opened this issue Feb 24, 2017 · 2 comments

Comments

@atd
Copy link

atd commented Feb 24, 2017

Meteor.default_connection is not included in Meteor type

When reporting a bug, please be sure to include the following:

  • A descriptive title
  • An isolated way to reproduce the behavior (example: GitHub repository with code isolated to the issue that anyone can clone to observe the problem)

Just add Meteor.default_connection to any component

  • What version of angular-meteor you're using, and the platform(s) you're running it on

[email protected]

  • What packages or other dependencies you're using
  • The behavior you expect to see, and the actual behavior

Meteor shows the following message:

client/imports/frontpage/frontpage.component.ts (89, 44): Property 'default_connection' does not exist on type 'typeof Meteor'.

I would expect the method to exist in Meteor type

@sdarnell
Copy link

sdarnell commented Feb 26, 2017

Presumably you're referring to the typings? Sadly they're a bit out of date.
But Meteor.default_connection is a REALLY old name that is only a legacy value, it was renamed Meteor.connection.

On the server, Meteor.connection is null, but on the client you could work around the problem using an any cast or using Meteor['connection'].

It may be best to raise the issue at: https://github.com/meteor-typings/meteor

@atd
Copy link
Author

atd commented Mar 1, 2017

Thank you for the clarifications @sdarnell

I am using Meteor['connection'] for now and opened the issue at meteor-typings/meteor#31

@atd atd closed this as completed Mar 1, 2017
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