mongoose-i18n-localize
mongoose-i18n-localize copied to clipboard
Problem with nodejs v.6.6.0
Hi,
I have a problem when I try to update a field with i18n: true with the version of node 6.6.0
I have 2 servers. The development with the version of nodejs 6.4.0 and I have no problems, but in the test server, which has the version of nodejs 6.6.0 throws the following error:
Cannot set property 'es-ES' of undefined
at model.Document.$__set (.../node_modules/mongoose/lib/document.js:889:21)
at model.Document.set (.../node_modules/mongoose/lib/document.js:772:10)
at model._handleIndex (.../node_modules/mongoose/lib/document.js:609:14)
at model.Document.set (.../node_modules/mongoose/lib/document.js:569:24)
at model._handleIndex (.../node_modules/mongoose/lib/document.js:593:12)
at model.Document.set (.../node_modules/mongoose/lib/document.js:569:24)
at model._handleIndex (.../node_modules/mongoose/lib/document.js:593:12)
at model.Document.set (.../node_modules/mongoose/lib/document.js:569:24)
at model._handleIndex (.../node_modules/mongoose/lib/document.js:593:12)
at model.Document.set (.../node_modules/mongoose/lib/document.js:569:24)
at model.Document.set (.../node_modules/mongoose/lib/document.js:642:14)
at model.set [as emailConfig] (.../node_modules/mongoose/lib/document.js:1790:41)
...
The versions of mongo and mongoose are the same
You can help?