我使用 underscoreGS 很长时间了,但突然出现“缺少标识符 underscoreGS 的库(可能已被删除,或者您没有读取权限?)”这个错误。
underscoreGS 应该是一个公共(public)库,我应该能够访问它。我也尝试删除并再次将其添加到项目中,我可以重新添加它,但错误仍然存在。
这是我的代码
if (tmpDate.getTime() == tomorrow.getTime() && underscoreGS._indexOf(added, row[1], false) < 0){
有没有人有同样的问题?还是 underscoreGS 有问题?
最佳答案
我可以重现这种行为。看起来这种行为不仅限于 underscoreGS
,但其他人喜欢 GSUnit
和 YouTubeApp
导致相同的错误消息。
我想说这些图书馆的所有者可能已经更改了共享设置,这些图书馆可能不再是公开的。
这已在问题跟踪器中报告:
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 中所述.
引用:
关于google-apps-script - 缺少标识符 underscoreGS 的库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65575459/