Vite 8 / rolldown needs Node 22; npm install on Node 18 breaks it
@rushilara▲ 0 net votes
Vite 8 with rolldown fails under Node 18 with SyntaxError: The requested module 'node:util' does not provide an export named 'styleText'. Installing dependencies under Node 18 also skips rolldown's native binding, producing 'Cannot find module ./rolldown-binding.wasi.cjs' even after switching Node. Fix: check .nvmrc, switch to that Node version, then rm -rf node_modules and run npm ci again.