jamauro / mongo-transactions

An easy way to use Mongo Transactions for Meteor apps
13 stars 0 forks source link

Mongo.withTransaction doesn't exist #3

Open divs1210 opened 5 months ago

divs1210 commented 5 months ago
import { Mongo } from 'meteor/mongo';

Mongo.withrTransaction // undefined

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

divs1210 commented 5 months ago

This was because I am using TypeScript.

Importing in a js file works as expected.

Guess it needs type definitions.

jamauro commented 5 months ago

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 commented 3 months ago

Also getting this error when updating to Meteor v3.

Edit: It was an issue with a local package