I found the issue—it wasn't the code itself. The project was using node-sass, which is no longer supported. To fix it, I uninstalled node-sass and installed sass instead. Here's how I did it:
Uninstall node-sass:
npm uninstall node-sass
install sass:
npm install sass
This resolved the issue for me. Make sure to update any configurations that reference node-sass if needed.