【问题标题】:Searching Node Modules for javascript files containing the with statement?在节点模块中搜索包含 with 语句的 javascript 文件?
【发布时间】:2019-12-25 01:49:44
【问题描述】:

我有一个模块,它导入了很多依赖项,然后又导入了很多依赖项等。

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

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

有没有办法在 VSCode 中搜索所有节点模块,或者使用像 sedfind 这样的 linux 命令行实用程序,或者找到所有带有 with 语句的文件。语法如下:

with (object)
    statement

【问题讨论】:

    标签: node.js bash ubuntu sed visual-studio-code


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2021-04-16
      • 1970-01-01
      • 2017-06-08
      • 1970-01-01
      • 2021-08-28
      • 1970-01-01
      • 1970-01-01
      • 2017-06-15
      • 2018-05-24
      相关资源
      最近更新 更多