[英]@types/node/index.d.ts(6208,55): error TS2304: Cannot find name 'Map' 'Set' 'Symbol' 'WeakMap' 'WeakSet'
[英]Cannot find name 'Record' in index.d.ts build error
我遇到了一个The index is outside the matrix limits.
在关注fullCalendar
jQuery插件的本教程中,将bundle添加到我的bundleConfig时fullCalendar
这些是捆绑。 由于版本较新,文件与教程中的文件略有不同。 注意:我在收到错误后也尝试过旧版本
//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"));
当谷歌搜索错误的修复程序时,我遇到了这个 stackoverflow页面,修复程序是更新程序包。 所以我做了,并得到以下错误:
Cannot find *projectname* name 'Record'
index.d.ts
Cannot find *projectname* name 'undefined'
并且Cannot find *projectname* name 'undefined'
index.d.ts
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;
[name: string]: (BaseModifier & Record<string, any>) | undefined;
但那只是给了我一个System.OutOfMemoryException
。
有谁知道我应该怎么做才能解决这个问题?
非常感谢你。
这是答案。 您需要将Typescript更新到最新版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.