I have the same error when trying to integrate the latest webpack 5.96.1 into a vue.js app. I avoid this error by downgrade to 5.95.0