undefined不是函数(评估't.matches(e)')

时间:2019-09-23 09:05:50

标签: javascript angular

我正在使用这个庞大的Angular 7应用程序,并且经常收到此错误消息。我找不到关于浏览器或设备的通用模式。我完全无法以任何方式复制它。我只是知道它来自我的Angular应用程序中的供应商捆绑包。错误堆栈太长了:

{
  "agent": "OS: Other 0.0.0 | Browser: Other 0.0.0 | Device: Other 0.0.0",
  "message": "undefined is not a function (evaluating 't.matches(e)')",
  "name": "TypeError",
  "stack": [
    {
      "functionName": "p",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1545102
    },
    {
      "functionName": "matchesElement",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 2455780
    },
    {
      "functionName": "processLeaveNode",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 2401262
    },
    {
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 2404500
    },
    {
      "functionName": "forEach",
      "fileName": "[native code]"
    },
    {
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 2403630
    },
    {
      "functionName": "flush",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 2401969
    },
    {
      "functionName": "flush",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 2430767
    },
    {
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 5516078
    },
    {
      "functionName": "runOutsideAngular",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1124396
    },
    {
      "functionName": "end",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 5516029
    },
    {
      "functionName": "detectChanges",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1231766
    },
    {
      "functionName": "onLoad",
      "fileName": "https://www.my-website.com/13.2af2a89cea99f16973a1.js",
      "lineNumber": 1,
      "columnNumber": 100745
    },
    {
      "fileName": "https://www.my-website.com/13.2af2a89cea99f16973a1.js",
      "lineNumber": 1,
      "columnNumber": 106764
    },
    {
      "functionName": "handleEvent",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 768774
    },
    {
      "functionName": "handleEvent",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1285260
    },
    {
      "functionName": "km",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 738539
    },
    {
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 760144
    },
    {
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1445303
    },
    {
      "functionName": "__tryOrUnsub",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1708959
    },
    {
      "functionName": "next",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1708112
    },
    {
      "functionName": "_next",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1137637
    },
    {
      "functionName": "next",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1137309
    },
    {
      "functionName": "next",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 2097465
    },
    {
      "functionName": "emit",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1054418
    },
    {
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 410979
    },
    {
      "functionName": "__tryOrUnsub",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1708959
    },
    {
      "functionName": "next",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1708112
    },
    {
      "functionName": "_next",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1137637
    },
    {
      "functionName": "next",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1137309
    },
    {
      "functionName": "notifyNext",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 134811
    },
    {
      "functionName": "_next",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 3398167
    },
    {
      "functionName": "next",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1137309
    },
    {
      "functionName": "_next",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 5725720
    },
    {
      "functionName": "next",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1137309
    },
    {
      "functionName": "_next",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1137637
    },
    {
      "functionName": "next",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1137309
    },
    {
      "functionName": "_next",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 472258
    },
    {
      "functionName": "next",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1137309
    },
    {
      "functionName": "_next",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 5725720
    },
    {
      "functionName": "next",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1137309
    },
    {
      "functionName": "notifyNext",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 5058132
    },
    {
      "functionName": "_next",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 3398167
    },
    {
      "functionName": "next",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 1137309
    },
    {
      "functionName": "onload",
      "fileName": "https://www.my-website.com/vendor.45b0d2a7efb1304d4f27.js",
      "lineNumber": 1,
      "columnNumber": 324844
    }
  ]
}

有人经历过类似的经历吗?

0 个答案:

没有答案