'static/css/main.61381647.css from Css Minimizer plugin at parse (<anonymous>)
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
> [email protected] 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.
Solution 1:[1]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | fullstacc |