Skip to content

ES6 Express app, using socket.io in other backend files: 'Cannot access 'io' before initialization' #4829

Discussion options

You must be logged in to vote

Hi! I think that's because you have a circular dependency in your code:

test cron > server > test normal > server

Could you please check?

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by respectabiggle
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
invalid This doesn't seem right
2 participants