When adding the "maxNodeModuleJsDepth": 10 for TypeScript compatibility of v18.0.0, a TS error in createUploadLink.mjs is possibly triggered.
'paths' is declared but its value is never read.ts(6133)
This happens on line 166
files.forEach((paths, file) => {
customFormDataAppendFile(form, String(++i), file);
});
suggested fix:
files.forEach((_paths, file) => {
customFormDataAppendFile(form, String(++i), file);
});