gpt4 book ai didi

node.js - 在 Node 模块中搜索包含 with 语句的 javascript 文件?

转载 作者:行者123 更新时间:2023-12-04 19:10:13 26 4
gpt4 key购买 nike

我有一个导入大量依赖项的模块,这些依赖项又导入大量依赖项等。

当我尝试在 Angular 中使用此模块时,它提示某些代码包含已弃用的 if 语句:

:Uncaught SyntaxError: Strict mode code may not include a with statement

有没有办法搜索 VSCode 中的所有 Node 模块或使用 linux 命令行实用程序,如 sedfind或查找所有带有 with 语句的文件。语法如下所示:
with (object)
statement

最佳答案

VSCode进入 User settings并输入 search.exc并删除 **/node_modules从模式中取消选中 Search: Use Ignore Files

关于node.js - 在 Node 模块中搜索包含 with 语句的 javascript 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57563564/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com