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

"this.$__path is not a function" cause by fast-safe-stringify #109

Closed
WangHansen opened this issue May 11, 2020 · 2 comments
Closed

"this.$__path is not a function" cause by fast-safe-stringify #109

WangHansen opened this issue May 11, 2020 · 2 comments

Comments

@WangHansen
Copy link

this.$__path is not a function error caused by fast-safe-stringify library when used with mongoose. It has been a issue for fast-safe-stringify for a while without fix: davidmarkclements/fast-safe-stringify#43

Is it possible to swap to safe-stable-stringify or provide an option to switch back to normal JSON.stringify()?

@mcollina
Copy link
Member

Not right now, a PR is likely welcomed anyway.

@WangHansen
Copy link
Author

Sure, currently safe-stable-stringify has a behavior of reordering the key of objects which breaks the tests. See issue I will wait until it is fixed to submit a PR.

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

2 participants