Describe the bug I am learning react,in fullstackopen,I want to build,but failed,I do some thing like this for example
rm -rf package-lock.json
rm -rf node_modules
npm cache clean --force
npm install
but i get a new problem
npm run build
> note@0.1.0 build
> react-scripts build
Creating an optimized production build...
Failed to compile.
static/css/main.61381647.css from Css Minimizer plugin
at parse (<anonymous>)
Steps to reproduce Issue can be replicated easily via
git clone https://github.com/yougongjiang/FullsatckopenPractice.git
cd part2/note
npm install
npm run build
Expected behavior I expected npm run build to work without errors.
You could try editing your package-lock.json and removing the dependency on Css Minimizer, then re-installing it using
npm install afterwards. If that doesn't work, remove it again and consider changing the version of css minimizer you're installing.