Cannot find module <filename> or its corresponding type declarations

Have you declared types for *.scss:

In any case, if a library version upgrade/downgrade is causing/fixing issues, the problem appears to be with that library instead of Netlify. Especially since it’s a major version, have you checked the migration guide?

Is this related: