Home > front end >  Npm run build/deploy does not works and throw "failed to compile errors"
Npm run build/deploy does not works and throw "failed to compile errors"

Time:08-03

I tried to run npm run deploy/ build but it doesn't work and throws this error in the terminal. I am a beginner to git and github and I want to upload my changes that I made in my latest commit to my github pages but it no matter how many time I tried, it always says fails to compile

the error message in terminal:

Creating an optimized production build... Failed to compile.

static/css/main.9391ac5d.css from Css Minimizer plugin Error: Unexpected '/'. Escaping special characters with \ may help.

CodePudding user response:

I think you have some extra characters which were added by mistake while commenting few things Check for any extra / or * in your css files

  • Related