I ran "npm audit fix" and it upgraded uniqid to 5.2.0 but when i attempt to run a build it breaks with:
Failed to minify the code from this file: node_modules/uniqid/index.js:18
I downgraded uniqid package to 5.0.3 and the error went away.
The error is so cryptic I couldn't even track down the line. The line 18 above is just a for in loop.
BTW... I am not using react-scripts and ejected long ago..