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

14,611

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

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

Share:
14,611
FllnAngl
Author by

FllnAngl

My name is not relevant, I'm still in school learning how to program like a boss. Currently on an internship at Syntrophos. I did this part to earn the badge but it wont drop for me. its kinda weird and annoying :/

Updated on June 17, 2022

Comments

  • FllnAngl
    FllnAngl almost 2 years

    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.

  • SalmanShariati
    SalmanShariati almost 6 years
    I've updated the TypeScript to 2.9.2 , but the problem exists yet!
  • SalmanShariati
    SalmanShariati almost 6 years