简体   繁体   English

如何关闭梳子中的漂亮。 与create-react-app?

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

I have tried to empty the .prettierrc file: 我试图清空.prettierrc文件:

{
}

But still when I run npm start it still comes up with a 'prettier' compilation error. 但是,当我运行npm start时,仍然会出现“更漂亮”的编译错误。

-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 -或者您可以尝试npm卸载更漂亮

-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. -或最后一个选项(在上述情况下无效),请删除节点模块文件夹,而不要尝试通过npm install进行安装,这样它将自动更新所有依赖项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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