【问题标题】:Cannot find name 'Record' in index.d.ts build error在 index.d.ts 构建错误中找不到名称“记录”
【发布时间】:2018-07-22 12:54:11
【问题描述】:

我在遵循this 关于fullCalendar jQuery 插件的教程时向我的bundleConfig 添加一个包时遇到了The index is outside the matrix limits. 错误

这些是捆绑包。由于版本较新,这些文件与教程中的文件略有不同。 注意:我在收到错误后也尝试了旧版本

        //Calendar css
        bundles.Add(new StyleBundle("~/Content/fullcalendarcss").Include(
            "~/Content/themes/base/jquery.ui.all.css",
            "~/Content/fullcalendar.css"));

        //Calendar script
        bundles.Add(new StyleBundle("~/bundles/fullcalendarjs").Include(
            "~/Scripts/jquery-ui-1.8.11.min.js",
            "~/Scripts/moment.min.js",
            "~/Scripts/fullcalendar.min.js"));

在谷歌搜索修复错误时,我遇到了this stackoverflow 页面,其中修复是更新软件包。所以我做了并得到了以下错误:

Cannot find *projectname* name 'Record'Cannot find *projectname* name 'undefined' 都在 index.d.ts 文件中。

在搜索这些错误的修复方法时,我发现了几个页面,例如 this onethis one 等等,但都无济于事。

我很困惑,我找不到解决 Cannot find *projectname* name 'Record'Cannot find *projectname* name 'undefined' 错误的方法。


编辑

我也试图简单地删除给出错误的行:[name: string]: (BaseModifier & Record<string, any>) | undefined;,但这只是给了我一个System.OutOfMemoryException


有人知道我应该怎么做才能解决这个问题吗?

谢谢。

【问题讨论】:

    标签: javascript c# jquery asp.net-mvc-5 fullcalendar


    【解决方案1】:

    这就是答案。您需要将 Typescript 更新到最新版本。

    Build error "Cannot find name 'Record'" with bootstrap 4

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-04-24
    • 2019-11-25
    • 1970-01-01
    • 1970-01-01
    • 2019-07-27
    • 1970-01-01
    • 2016-01-24
    相关资源
    最近更新 更多