Build Issues rollup/rollup-linux-x64-gnu

Hi,

Since the latest few builds we are running into a build issue. We didn’t change anything after the last successful build.

Site ID: c16e2b84-6150-4fbc-9845-8849194becfa

Error:

10:56:39 AM: [log] [nuxi] Nuxt 3.18.1 with Nitro 2.12.4
10:56:40 AM: [error] Cannot find module @rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
10:56:40 AM:   at requireWithFriendlyError (node_modules/rollup/dist/native.js:64:9)
10:56:40 AM:   at Object.<anonymous> (node_modules/rollup/dist/native.js:73:76)
10:56:40 AM:   at Module._compile (node:internal/modules/cjs/loader:1688:14)
10:56:40 AM:   at Object..js (node:internal/modules/cjs/loader:1820:10)
10:56:40 AM:   at Module.load (node:internal/modules/cjs/loader:1423:32)
10:56:40 AM:   at Function._load (node:internal/modules/cjs/loader:1246:12)
10:56:40 AM:   at TracingChannel.traceSync (node:diagnostics_channel:322:14)
10:56:40 AM:   at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
10:56:40 AM:   at cjsLoader (node:internal/modules/esm/translators:268:5)
10:56:40 AM:   at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:202:7)
10:56:40 AM:   [cause]: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /opt/build/repo/node_modules/rollup/node_modules/@rollup/rollup-linux-x64-gnu/rollup.linux-x64-gnu.node)
    at Object..node (node:internal/modules/cjs/loader:1846:18)
    at Module.load (node:internal/modules/cjs/loader:1423:32)
    at Function._load (node:internal/modules/cjs/loader:1246:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
    at Module.require (node:internal/modules/cjs/loader:1445:12)
    at require (node:internal/modules/helpers:135:16)
    at requireWithFriendlyError (node_modules/rollup/dist/native.js:46:10)
    at Object.<anonymous> (node_modules/rollup/dist/native.js:73:76)
    at Module._compile (node:internal/modules/cjs/loader:1688:14) 

I tried adding @rollup/rollup-linux-x64-gnu as a dev dependency, but this didn’t work either. We don’t have a netlify.toml file.

Any help appreciated. Thanks

Hi @rxs,

Thanks for reaching out! Sorry to hear about the issue while building.

Looking into the error, I did find this Netlify Forum post that had a similar issue and a solution:

Could you give that a try and see if it resolves the issue?

It actually did work now. Already tried this before the weekend. Seems like even Netlify servers needed a recovery too beside me ofc.