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

TypeError: Cannot read property 'Decimal128' of null #7866

Closed
mapleeit opened this issue Jun 4, 2019 · 2 comments
Closed

TypeError: Cannot read property 'Decimal128' of null #7866

mapleeit opened this issue Jun 4, 2019 · 2 comments
Labels
needs clarification This issue doesn't have enough information to be actionable. Close after 14 days of inactivity

Comments

@mapleeit
Copy link

mapleeit commented Jun 4, 2019

Do you want to request a feature or report a bug?

bug

What is the current behavior?

Throw TypeError: Cannot read property 'Decimal128' of null at mongoose/lib/types/decimal128.js:13:44

Stack:

master_1     | 2019-06-04 07:53:48.702 [ERRO] [53 cpu2 1] [/app/master] [warning.js:18] (node:53) TypeError: Cannot read property 'Decimal128' of null
master_1     | 2019-06-04 07:53:48.703 [WARN] [53 cpu2 1] [/app/master] [master.js:54] TypeError: Cannot read property 'Decimal128' of null
master_1     |     at Object.<anonymous> (/node_modules/orange-ci/node_modules/mongoose/lib/types/decimal128.js:13:44)
master_1     |     at Module._compile (internal/modules/cjs/loader.js:701:30)
master_1     |     at Module._compile (/TSW/bin/tsw/loader/seajs/lib/sea-node.js:43:25)
master_1     |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
master_1     |     at Module.load (internal/modules/cjs/loader.js:600:32)
master_1     |     at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
master_1     |     at Function.Module._load (internal/modules/cjs/loader.js:531:3)
master_1     |     at Module.require (internal/modules/cjs/loader.js:637:17)
master_1     |     at require (internal/modules/cjs/helpers.js:22:18)
master_1     |     at Object.<anonymous> (/node_modules/orange-ci/node_modules/mongoose/lib/utils.js:7:17)
master_1     |     at Module._compile (internal/modules/cjs/loader.js:701:30)
master_1     |     at Module._compile (/TSW/bin/tsw/loader/seajs/lib/sea-node.js:43:25)
master_1     |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
master_1     |     at Module.load (internal/modules/cjs/loader.js:600:32)
master_1     |     at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
master_1     |     at Function.Module._load (internal/modules/cjs/loader.js:531:3)

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

Should work well.

What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.

Node.js: v10.16.0
Mongoose: 5.5.12
MongoDB: 4.0.10

@vkarpov15
Copy link
Collaborator

Please provide code samples.

@vkarpov15 vkarpov15 added the needs clarification This issue doesn't have enough information to be actionable. Close after 14 days of inactivity label Jun 9, 2019
@mapleeit
Copy link
Author

It seems that I required multiple times of mongoose. And delete the require.cache.

I solved this by stop deleting require.cache

@Automattic Automattic locked as resolved and limited conversation to collaborators Jun 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs clarification This issue doesn't have enough information to be actionable. Close after 14 days of inactivity
Projects
None yet
Development

No branches or pull requests

2 participants