Closed itsdarrylnorris closed 4 years ago
@itsdarrylnorris Thanks for trying this. I'm afraid I've seen that too but there's no clue except this open issue.
Hey @piglovesyou ,
What about the express warning? Any thoughts on why this is happening? I tried adding express as dependency and did not fixed.
Ah, I forgot to add express as it's a peerDeps of flow-middleware. Perhaps I need to work on flow-middleware more since it's relatively new. Let me try it in a week.
It seems that I accidentally include express in client-side bundle.
Hmm, from my understanding, calling require('./composePassport')
in withIdentity()
shouldn't include it in client-side bundle, but it does (running yarn build
and then .next/static
includes passport code). I need more time to identify the root cause.
@itsdarrylnorris It seems it was just a circular deps just the message describes. I think it was solved.
Wait, it still shows the error
I think 6581a8e5222d311abc6dccc4e7781091aa659da9 is a better solution for exclude server-side module in client bundle.
Problem
When I am running this example code I am getting this warning on every page request:
Do we have a way to avoid the express warning?
When I am hot reloading, I am getting this error:
Have anyone ran into this error before?