当前位置:网站首页>[prettier] the code automatically formatted by prettier does not take effect
[prettier] the code automatically formatted by prettier does not take effect
2022-07-16 05:39:00 【Vegetable rolls_】
Problem description :
vscode adopt prettier It does not take effect when the code is automatically formatted , And only this project does not take effect , Other items are OKCause analysis :
Click on vscode Right lower corner Prettier, Found an error , Translated as configured in the project prettier Outdated Version .
[“ERROR” - In the morning 9:41:40] Your project is configured to use an outdated version of prettier that cannot be used by this extension. Upgrade to the latest version of prettier.

Solution :
It's easier to know the reason and solve it , Run the following command directly
npm install prettier
If it's still wrong , Check the package-lock Medium prettier Is the version consistent with package In line , If it's not consistent , Delete directly package-lock, And then run
npm install prettier
Finally, remember to restart vscodoe
边栏推荐
- 【黄啊码】PHP将远程资源保存到本地
- 【黄啊码】微软IE浏览器将退役 网友说:以后考试报名咋办?
- Understanding service governance in distributed development
- Notes - Chang Geng
- JS根据二进制数据下载文件
- Component foundation of component-based programming
- Cross domain exceptions where the admin system is nested in a third-party system
- REM layout
- 使用 ramda 解析 .yarnrc/.npmrc 配置文件的例子
- C3&H5&ES6
猜你喜欢
随机推荐
【黄啊码】fastadmin接入微信支付和支付宝支付
Modularity CMJ & ESM
Advanced architects, 16 common principles of microservice design and Governance
ERR_ PNPM_ PEER_ DEP_ ISSUES Unmet peer dependencies
网络安全应急响应-常用工具
C语言:结构体中链表的添加与删除
[Huang ah code] you must learn these little knowledge points of MySQL for beginners
Memo, usememo, usecallback summary
第一次放生,感觉很奇妙
38.js--原型练习案例(校招面试题)
JS函数自调用
C3&H5&ES6
北游项目笔记
ES6--解构赋值(重点)
Find the ID of the parent node according to the child node ID in the tree data
Implementation principle of new keyword in JS
Free CDN jsdelivr acceleration website
Svelte 官方入门教程(3)—— Props
JS根据二进制数据下载文件
【黄啊码】为什么我建议您选择go,而不选择php?



![[Huang ah code] today, someone actually asked me: what does where 1=1 mean?](/img/66/2413c1cfb39e6384dc2fa8af276e9e.png)





