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 'connection' does not exist on type 'typeof Meteor' #31

Open
atd opened this issue Mar 1, 2017 · 3 comments
Open

Property 'connection' does not exist on type 'typeof Meteor' #31

atd opened this issue Mar 1, 2017 · 3 comments

Comments

@atd
Copy link

atd commented Mar 1, 2017

Meteor.connection is not included in Meteor typing

client/imports/frontpage/frontpage.component.ts (103, 46): Property 'connection' does not exist on type 'typeof Meteor'.

Using [email protected]

@zenithtekla
Copy link

import { Meteor } from 'meteor/meteor';
const Messages = new Meteor.Collection('messages');

Meteor.startup(() => {
// code to run on server at startup
});

Meteor.publish('messages', () => Messages.find());

Error:
server/main.ts (2, 29): Property 'Collection' does not exist on type 'typeof Meteor'.

@pubkey
Copy link

pubkey commented Nov 1, 2019

still valid. Workarround:

Meteor['connection'].setUserId(userName)

@paulina-grunwald
Copy link

still valid workaround in 2021

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

4 participants