Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

bug: Zone.js error with mongoosedb(Angular2 Universal), old version works #453

Closed
EdSaleh opened this issue Sep 17, 2016 · 3 comments
Closed

Comments

@EdSaleh
Copy link

EdSaleh commented Sep 17, 2016

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,

@EdSaleh 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
@EdSaleh
Copy link
Author

EdSaleh commented 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.

@jvbianchi
Copy link

jvbianchi commented Sep 19, 2016

it might be related with #448

@KrauseStefan
Copy link

Hi

I had some similar errors previously could you maybe check if your issue is resolved?
The PR that fixed the issue is #475.

you need to build it in order to test it.

I've tried to create an unofficial release that you can test with here

If it works then we might be able to get the team to cut a official release.

@EdSaleh EdSaleh closed this as completed Sep 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants