RangeError: Maximum call stack size exceeded (Vue and eslint)

问题描述 投票:0回答:0

我有一个非常非常长的 res.data 字符串,启动时出现错误:“超出最大调用堆栈大小” 我发现这是 eslint 配置问题。也许我的代码哪里有问题?

eslint

 rules: {
    
    'prefer-promise-reject-errors': 'off',

    quotes: ['warn', 'single', { avoidEscape: true }],

    "@typescript-eslint/no-explicit-any": "off",


    '@typescript-eslint/explicit-function-return-type': 'off',

    '@typescript-eslint/no-var-requires': 'off',

    'no-unused-vars': 'off',


    'max-len': 0,


  }

JS

const base64String = btoa(String.fromCharCode(...new Uint8Array(res.data)));
javascript vue.js eslint config
© www.soinside.com 2019 - 2024. All rights reserved.