在 index.d.ts 构建错误中找不到名称“记录”

Fll*_*ngl 6 javascript c# jquery fullcalendar asp.net-mvc-5

我遇到了一个The index is outside the matrix limits.错误,同时增加了束以我bundleConfig而下面这个教程对fullCalendarjQuery插件

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

        //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"));
Run Code Online (Sandbox Code Playgroud)

在谷歌搜索修复错误时,我发现了这个stackoverflow 页面,其中修复程序是更新包。所以我做了并得到了以下错误:

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

而对于谷歌搜索这些错误修复,我来到后几页像这一个这一个仅举几例,但无济于事。

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


编辑

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


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

非常感谢你。

nan*_*erd 4

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

使用 bootstrap 4 构建错误“找不到名称‘记录’”