Open paras-taneja opened 4 months ago
On Further investigation found out the "@sveltejs/adapter-node" package had the leak, downgraded the version to "1.2.4"
Which version was the adapter node package prior to downgrading? Did you try updating to the latest LTS version of Node.js (20)? (If that leak stems from undici which comes bundled with node)
@sveltejs/adapter-node: 2.1.2 was the version before downgrading. Current Node Version is 18.3 will try with above mentioned version and check on the leak
Describe the bug
We are observing memory leak in our code after upgrading to svelte kit 2. On further investigation found out the leak is coming from the fetch function (part of event object and not global fetch) used in load function of page.ts. To validate the fact we used global fetch and saw no memory leak.
Reproduction
1) Create new svelte-kit project using this command => npm create svelte@latest my-app 2) call an api in load function in one of the page.ts using load fetch and not global fetch
Logs
System Info
Severity
annoyance
Additional Information
No response