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

hello?js eror #72

Open
hughdev opened this issue Oct 16, 2021 · 3 comments
Open

hello?js eror #72

hughdev opened this issue Oct 16, 2021 · 3 comments

Comments

@hughdev
Copy link

hughdev commented Oct 16, 2021

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
Copy link
Author

hughdev commented Oct 16, 2021

@lykmapipo hello.

@hughdev
Copy link
Author

hughdev commented Oct 18, 2021

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
Copy link
Author

hughdev commented Oct 18, 2021

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

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

1 participant