google-apps-script - 缺少标识符 underscoreGS 的库

标签 google-apps-script

我使用 underscoreGS 很长时间了,但突然出现“缺少标识符 underscoreGS 的库(可能已被删除,或者您没有读取权限?)”这个错误。
underscoreGS 应该是一个公共(public)库,我应该能够访问它。我也尝试删除并再次将其添加到项目中,我可以重新添加它,但错误仍然存​​在。
这是我的代码

  if (tmpDate.getTime() == tomorrow.getTime() && underscoreGS._indexOf(added, row[1], false) < 0){
有没有人有同样的问题?还是 underscoreGS 有问题?

最佳答案

我可以重现这种行为。看起来这种行为不仅限于 underscoreGS ,但其他人喜欢 GSUnitYouTubeApp导致相同的错误消息。
我想说这些图书馆的所有者可能已经更改了共享设置,这些图书馆可能不再是公开的。
这已在问题跟踪器中报告:

  • Issues with underscoreGS, GSUnit libraries, and others?
  • Error replacing library

  • 2020-01-21 更新:
    其中一个问题已更新为 the following comment来自谷歌:

    This is not an issue with library import, this is a configuration problem by the library host/owner.

    Please take this up with the third party developers of the affected libraries.


    显然,这不是库导入过程的问题,而是库本身的问题。由于这些库不受 Google 官方支持,因此受此影响的任何人都应与库开发人员讨论。
    此外,另一位开发人员在 this comment 中共享了这些库的备份脚本。 ,如 Gonzalo's answer 中所述.
    引用:
  • GAS Library Management (public)
  • 关于google-apps-script - 缺少标识符 underscoreGS 的库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65575459/

    相关文章:

    google-apps-script - 是否可以使用谷歌电子表格中的数据来 'prefill' 谷歌表单?

    google-apps-script - 取消选中从 Google Apps 脚本宏查看 protected 范围

    javascript - doGet(e) 参数未定义

    Google Apps 脚本上的 Firebase 数据库 secret

    google-apps-script - 以编程方式创建触发器时如何使用版本化部署?

    javascript - 如何判断 Google 电子表格的 Google Apps 脚本中两个单元格是否相等

    javascript - 如何调试在谷歌应用脚​​本中不相等的相同字符串?

    google-apps-script - '异常: Too many simultaneous invocations: Spreadsheets' - Is it because I am opening spreadsheets in a loop?

    google-apps-script - 如何合并 Google 文本文档中表格的两个单元格而不出现这种奇怪的结果?

    sql-server - 从 Google 脚本连接到 MS SQL 数据库