Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help: [Parsing error: Maximum call stack size exceeded] dont know why this happen & how to fix it #1941

Closed
CoderMonkie opened this issue Jul 27, 2022 · 1 comment
Labels
invalid needs info needs repro Need a repository that can reproduce the problem, or a link to DEMO.

Comments

@CoderMonkie
Copy link

I saw 6994 but, I didnt use babel

The error

In a Vue file

error Parsing error: Maximum call stack size exceeded

image


Environment

Vue3
vite
uni-app
eslint
prettier

package.json

{
  // ... ...
    "eslint": "^8.0.1",
    "eslint-config-prettier": "^8.5.0",
    "eslint-config-standard": "^17.0.0",
    "eslint-plugin-import": "^2.25.2",
    "eslint-plugin-n": "^15.0.0",
    "eslint-plugin-prettier": "^4.2.1",
    "eslint-plugin-promise": "^6.0.0",
    "eslint-plugin-vue": "^9.3.0",
    "prettier": "^2.7.1",
  // ... ...
}

.eslintrc.js

module.exports = {
  env: {
    browser: true,
    es2021: true,
  },
  extends: [
    'plugin:vue/vue3-essential',
    'standard',
    'plugin:prettier/recommended',
  ],
  parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
    parser: 'vue-eslint-parser',
  },
  plugins: ['vue', 'prettier'],
  rules: {
    'prettier/prettier': [
      'error',
      {
        singleQuote: true,
        tabWidth: 2,
        parser: 'flow',
        endOfLine: 'auto',
        trailingComma: 'all',
      },
    ],
  },
  ignorePatterns: [
    'node_modules/',
    'build/',
    'public/',
    'dist/',
    'src/unpackage',
    'src/static',
  ],
};

.prettier.js

/* eslint-disable no-undef */
module.exports = {
  printWidth: 80,
  tabWidth: 2,
  useTabs: false,
  semi: true,
  vueIndentAndStyle: true,
  vueIndentScriptAndStyle: false,
  singleQuote: true,
  quoteProps: 'as-needed',
  bracketSpacing: true,
  trailingComma: 'all',
  jsxBracketSameLine: false,
  jsxSingleQuote: false,
  arrowParens: 'always',
  insertPragma: false,
  requirePragma: false,
  proseWrap: 'never',
  htmlWhitespaceSensitivity: 'strict',
  endOfLine: 'auto',
};
@CoderMonkie CoderMonkie changed the title Help: [ Help: [Parsing error: Maximum call stack size exceeded] Jul 27, 2022
@CoderMonkie CoderMonkie changed the title Help: [Parsing error: Maximum call stack size exceeded] Help: [Parsing error: Maximum call stack size exceeded] dont know why this happen & how to fix it Jul 27, 2022
@ota-meshi ota-meshi added invalid needs info needs repro Need a repository that can reproduce the problem, or a link to DEMO. labels Jul 27, 2022
@ota-meshi ota-meshi closed this as not planned Won't fix, can't repro, duplicate, stale Aug 7, 2022
@rengadevigg
Copy link

I am experiencing same issue in typescript file in angular ionic application
Screenshot 2024-03-21 at 5 08 12 PM
after update of eslint to 16 along with angular version from 12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid needs info needs repro Need a repository that can reproduce the problem, or a link to DEMO.
Projects
None yet
Development

No branches or pull requests

3 participants