You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Vue2+Vite+Vuetify项目Netlify构建报错:t._reverse is not a function

Netlify构建报错:TypeError: t._reverse is not a function(Vue2 + Vite + Vuetify2项目)

项目环境

  • 技术栈:Vue 2 + Vite + Vuetify 2
  • 报错文件路径:node_modules\.vite\deps\jsonwebtoken.js

报错截图

报错截图1
报错截图2
报错截图3

报错信息

Uncaught TypeError: t._reverse is not a function
    at index.1607bf8c.js:35:13236
    at index.1607bf8c.js:35:13634

报错代码片段

// node_modules/asn1.js/lib/asn1/constants/der.js
var require_der = __commonJS({
  "node_modules/asn1.js/lib/asn1/constants/der.js"(exports2) {
    var import_dist = __toESM(require_dist());
    var constants = require_constants();
    exports2.tagClass = {
      0: "universal",
      1: "application",
      2: "context",
      3: "private"
    };
    exports2.tagClassByName = constants._reverse(exports2.tagClass);
    exports2.tag = {
      0: "end",
      1: "bool",
      2: "int",
      3: "bitstr",
      4: "octstr",
      5: "null_",
      6: "objid",
      7: "objDesc",
      8: "external",
      9: "real",
      10: "enum",
      11: "embed",
      12: "utf8str",
      13: "relativeOid",
      16: "seq",
      17: "set",
      18: "numstr",
      19: "printstr",
      20: "t61str",
      21: "videostr",
      22: "ia5str",
      23: "utctime",
      24: "gentime",
      25: "graphstr",
      26: "iso646str",
      27: "genstr",
      28: "unistr",
      29: "charstr",
      30: "bmpstr"
    };
    exports2.tagByName = constants._reverse(exports2.tag);

内容的提问来源于stack exchange,提问作者Adriel Werlich

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.26 05:00:20