Skip to content

Instantly share code, notes, and snippets.

View affinage-digital's full-sized avatar

Affinage Digital affinage-digital

View GitHub Profile
@affinage-digital
affinage-digital / deploy-nuxt3-problem.md
Last active October 8, 2024 20:37
Esbuild, vite, nuxt, nitro multi-threading problem

Sometimes when deploy and publishing a project on a hosting, an error may occur:

[vite:esbuild] The service is no longer running: write EPIPE
[vite:esbuild-transpile] The service was stopped: write EPIPE
function foo<T>(arr: T[], callback: (el: T, i: number, arr: T[]) => T)
{
return arr.reduce((acc: T[], value, index) => {
const result = callback(value, index, arr)
acc.push(result)
return acc
}, []);
}