You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
When I use the new Zone.js and connect mongodb to my app, it causes an error.
When I use the old Zone.js, the database is connected successfully. works (but cause other problems with Angular2).
The error that is caused by the new Zone.js is:
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
Please help.
Thank You,
The text was updated successfully, but these errors were encountered:
EdSaleh
changed the title
bug: Zone.js error with mongoose db, old version works
bug: Zone.js error with mongoosedb(Angular2 Universal), old version works
Sep 17, 2016
I fixed the issue, I found that this version of the file zone-node.js committed 7 days ago (after replacing the current one with it in zone.js/dist/zone-node.js) worked well without any errors for my app.
When I use the new Zone.js and connect mongodb to my app, it causes an error.
When I use the old Zone.js, the database is connected successfully. works (but cause other problems with Angular2).
The error that is caused by the new Zone.js is:
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
Please help.
Thank You,
The text was updated successfully, but these errors were encountered: