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 has been archived by the owner on Apr 20, 2024. It is now read-only.
Because there are circular dependancies there is memory leaks and constantly increasing memory usage of Next.js. After some research this appears to be related to and/or because of..
Which outputs the file explaining the circular dependencies...
I might also recommend to after fixing our circular deps, to integrate this tool into our testing and to basically fail out and don't let new code with circular dependencies to be merged into master.
The text was updated successfully, but these errors were encountered:
Is this actually happening in production? Hot reload should not be enabled/used in production as it's mainly for fast feedback during development when we change some code. It creates some impossible scenarios like loading modules multiple times and so we may be better off disabling that first, then fix the circular imports.
Because there are circular dependancies there is memory leaks and constantly increasing memory usage of Next.js. After some research this appears to be related to and/or because of..
vercel/next.js#34659
nodejs/node#42080
I used an wonderful tool to help figure this out called madge and ran it with the following command...
npx madge -c --extensions ts,tsx --exclude "test*" -l dot --dot -i test.png ./
Which outputs the file explaining the circular dependencies...
I might also recommend to after fixing our circular deps, to integrate this tool into our testing and to basically fail out and don't let new code with circular dependencies to be merged into master.
The text was updated successfully, but these errors were encountered: