-
Notifications
You must be signed in to change notification settings - Fork 681
newest Zone.js doesn't work with mongoose db #164
Comments
hi @medozs I am using Mongoose, it works. Need more info, and maybe ask on Stack Overflow, so more people can help you locate the issue? |
@hongbo-miao I had an old version and it works well, this version doesn't work with mongoose at all. |
When I do any operation on the database, this error happens?? |
btw, i did this to config types: |
Yes, I get this error too!! |
I did different tests and discovered that is a bug with the new Zone.js, and the old Zone.js didn't have this problem of not being able to connect to db. But the old Zone.js causes different error when used with the new universal app. |
@alxhub could you have a look? I think t is related to your nice work |
@mhevery @alxhub @imgsworld |
i have the same issue, and i am not using mongoose. I use mongodb driver directly |
@medozs you are right, got same error. zone.js 0.6.21 works well. The issue starts from 0.6.22 |
Any updates on this issue? |
Pat was suggesting if someone could open up an issue in the Zonejs repo for this as well. I haven't heard any updates though. |
@MarkPieszak oh it is at angular/zone.js#448 |
Perfect, thanks! |
thanks for creating an issue on this. I'm closing for angular/zone.js#448 |
old version compilers but create other problems.
the new version displays:
c:\Users\ahmed\Documents\Me\Projects\Netbine5\node_modules\zone.js\dist\zone-node.js:129
throw error;
^
TypeError: Cannot read property 'filter' of undefined
at zoneAwareEventListeners (c:\Users\ahmed\Documents\Me\Projects\Netbine5\node_modules\zone.js\dist\zone-node.js:715:13)
at Db.listeners (eval at createNamedFn (c:\Users\ahmed\Documents\Me\Projects\Netbine5\node_modules\zone.js\dist\zone-node.js:724:17), :3:36)
at Server.listener (c:\Users\ahmed\Documents\Me\Projects\Netbine5\node_modules\mongodb\lib\db.js:1786:15)
at Server.g (events.js:286:16)
at ZoneDelegate.invokeTask (c:\Users\ahmed\Documents\Me\Projects\Netbine5\node_modules\zone.js\dist\zone-node.js:225:37)
at Zone.runTask (c:\Users\ahmed\Documents\Me\Projects\Netbine5\node_modules\zone.js\dist\zone-node.js:125:47)
at Server.ZoneTask.invoke (c:\Users\ahmed\Documents\Me\Projects\Netbine5\node_modules\zone.js\dist\zone-node.js:293:33)
at emitTwo (events.js:106:13)
at Server.emit (events.js:191:7)
at Server.connectHandler (c:\Users\ahmed\Documents\Me\Projects\Netbine5\node_modules\mongodb\lib\server.js:329:10)
at Server.g (events.js:286:16)
at ZoneDelegate.invokeTask (c:\Users\ahmed\Documents\Me\Projects\Netbine5\node_modules\zone.js\dist\zone-node.js:225:37)
at Zone.runTask (c:\Users\ahmed\Documents\Me\Projects\Netbine5\node_modules\zone.js\dist\zone-node.js:125:47)
at Server.ZoneTask.invoke (c:\Users\ahmed\Documents\Me\Projects\Netbine5\node_modules\zone.js\dist\zone-node.js:293:33)
at emitOne (events.js:96:13)
at Server.emit (events.js:188:7)
The text was updated successfully, but these errors were encountered: