编程小白

使用Element-plus库时,控制台出现警告:$weight: Passing a number without unit % (0) is deprecated.

虽然不影响项目的正常运行,但是看着挺不爽的...

 在网上找了很多资料,终于在这个回答:Developers Community by KeenThemes | | sass warning, can't find the cause of the problem

找到了有效的方法,修改sass和sass-loader的版本:

"sass": "1.55.0",
"sass-loader": "13.2.0",

© 2023 编程小白. Generated with Hugo and Mainroad theme.