mongoose-gridfs icon indicating copy to clipboard operation
mongoose-gridfs copied to clipboard

hello?js eror

Open hughdev opened this issue 4 years ago • 3 comments

const { createModel } = require('mongoose-gridfs') error TypeError: Cannot read property 'Decimal128' of null at Object. (/Users/-check/node_modules/@lykmapipo/mongoose-common/node_modules/mongoose/lib/types/decimal128.js:13:44) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object. (/Users/-check/node_modules/@lykmapipo/mongoose-common/node_modules/mongoose/lib/utils.js:10:17) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object. (/Users/-check/node_modules/@lykmapipo/mongoose-common/lib/index.js:7:15) at Module._compile (internal/modules/cjs/loader.js:999:30)

not ? not support require?????

hughdev avatar Oct 16 '21 04:10 hughdev

@lykmapipo hello.

hughdev avatar Oct 16 '21 04:10 hughdev

hello,this my project not surport es6 import function. so ,that so bad... image we must be lock version.... can u surport require function? const { createModel } = require('mongoose-gridfs')

hughdev avatar Oct 18 '21 06:10 hughdev

image It's too unfriendly. my project was crash.on line.. pls. Is it compatible with both? require & import?

hughdev avatar Oct 18 '21 06:10 hughdev