简体   繁体   English

删除了库中的 console.logs 仍然显示在客户端

[英]Removed console.logs in library still show on the client

I had some console.logs in my library for test purposes and today I decided to remove them.我的库中有一些 console.logs 用于测试目的,今天我决定删除它们。 After removing every log I built and published my library and installed it on my project.删除每个日志后,我构建并发布了我的库并将其安装在我的项目中。 The console.logs are still showing allthough they're nowhere to be found in the code.尽管在代码中找不到它们,但 console.logs 仍在显示所有内容。 but when I open the source tab in my browser inspector to see where the logs come from it still shows old code where the logs were still present.但是当我在浏览器检查器中打开源选项卡以查看日志的来源时,它仍然显示日志仍然存在的旧代码。 What can be the cause of this and how do I fix this?这可能是什么原因,我该如何解决?

I have found the issue!我发现了问题! Another library in this project which also uses this main library had an older version installed which still contained the logs这个项目中的另一个库也使用这个主库,安装了一个旧版本,它仍然包含日志

Try to Disable the Cache with Dev Tools :尝试使用开发工具禁用缓存:

https://developer.chrome.com/devtools/docs/settings#general https://developer.chrome.com/devtools/docs/settings#general

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

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