mongoose-transactions
mongoose-transactions copied to clipboard
[mongoose-transactions-typescript]: TypeError: mongoose_transactions_typescript_1.default is not a constructor
const transaction = new mongoose_transactions_typescript_1.default(); ^
TypeError: mongoose_transactions_typescript_1.default is not a constructor
at Object.
at Object.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: rm -rf dist && tsc & node ./dist/app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Please provide more information about your environment and a sample of the code you are trying to run!