简体   繁体   中英

How to turn off prettier in comb. with create-react-app?

I have tried to empty the .prettierrc file:

{
}

But still when I run npm start it still comes up with a 'prettier' compilation error.

-if u are using visual code , then you can simply go to the extension tab and disable it.

-or you can try npm uninstall prettier

-or last option(in case above didn't work) remove node modules folder than try to install it through npm install so it will automatically update all the dependencies.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM