Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find name 'Record' in index.d.ts build error

I ran into an The index is outside the matrix limits. error while adding a bundle to my bundleConfig while following this tutorial about the fullCalendar jQuery plugin

these are the bundles. The files are a little bit different than the ones in the tutorial because of newer versions. note: I also tried the older versions after getting the errors

        //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"));

while googling for a fix for the error, I came upon this stackoverflow page where the fix was to update the packages. so I did and got the following errors:

Cannot find *projectname* name 'Record' & Cannot find *projectname* name 'undefined' which are both inside the index.d.ts file.

while googling for a fix for those errors, I came upon several pages like this one and this one to name a few, but to no avail.

I'm so confused and I can't find a solution to the Cannot find *projectname* name 'Record' & Cannot find *projectname* name 'undefined' errors.


EDIT

also I tried to simply take out the line which was giving the error: [name: string]: (BaseModifier & Record<string, any>) | undefined; but that just gave me an System.OutOfMemoryException.


Does anybody know what I should do to resolve this problem?

Thank you kindly.

like image 232
FllnAngl Avatar asked Feb 12 '18 11:02

FllnAngl


1 Answers

Here is the answer. You need to update Typescript to the lastest.

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

like image 134
nanonerd Avatar answered Nov 09 '22 19:11

nanonerd