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

Mongo.withTransaction doesn't exist #3

Open
divs1210 opened this issue May 18, 2024 · 3 comments
Open

Mongo.withTransaction doesn't exist #3

divs1210 opened this issue May 18, 2024 · 3 comments

Comments

@divs1210
Copy link

divs1210 commented May 18, 2024

import { Mongo } from 'meteor/mongo';

Mongo.withrTransaction // undefined

Do I need to use a specific version of Meteor / Mongo?

@divs1210
Copy link
Author

This was because I am using TypeScript.

Importing in a js file works as expected.

Guess it needs type definitions.

@jamauro
Copy link
Owner

jamauro commented May 18, 2024

Hmm, it has type definitions. Would you mind setting up a simple repo that I can pull from GitHub?

Also just to be sure, you're using Mongo.withTransaction right? In the example you gave above there is a typo with an extra r.

@pmogollons
Copy link

pmogollons commented Jul 25, 2024

Also getting this error when updating to Meteor v3.

Edit: It was an issue with a local package

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

3 participants