This Sage 9.x update branch updates webpack to version 5 - which should also resolve compatibility issues: