question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: this.cliEngine is not a constructor

See original GitHub issue

Tell us about your environment

  • **ESLint Version: v6.0.1
  • **Node Version: v10.13.0
  • **npm Version: v6.4.1

What parser (default, Babel-ESLint, etc.) are you using?

Please show your full configuration: module.exports = { parser: ‘@typescript-eslint/parser’, extends: [ ‘airbnb’, ‘prettier’, ‘prettier/@typescript-eslint’, ‘plugin:compat/recommended’, ‘plugin:@typescript-eslint/recommended’, ], plugins: [‘@typescript-eslint’], env: { browser: true, node: true, es6: true, mocha: true, jest: true, jasmine: true, }, globals: { APP_TYPE: true, ALIYUN_ENV: true, WODAX_APP_NAME: true, page: true, }, rules: { /// for base 配置 ‘linebreak-style’: 0, ‘no-unused-vars’: 0, ‘no-param-reassign’: 0, ‘no-underscore-dangle’: 0,

/// for compat
'compat/compat': 0,

/// for import 配置
'import/no-cycle': 0,
'import/no-unresolved': [2, { ignore: ['^@/', '^umi/', '^./', '^../', '^.', '^..'] }],
'import/no-extraneous-dependencies': [
  'warn',
  {
    optionalDependencies: true,
    devDependencies: [
      '**/tests/**(.js,.jsx,.ts,.tsx)',
      '**/e2e/**(.js,.jsx,.ts,.tsx)',
      '/mock/**/**(.js,.jsx,.ts,.tsx)',
      '**/**.test.(.js,.jsx,.ts,.tsx)',
    ],
  },
],

/// for jsx-a11y 配置
'jsx-a11y/no-noninteractive-element-interactions': 0,
'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/no-static-element-interactions': 0,
'jsx-a11y/anchor-is-valid': 0,
"jsx-a11y/label-has-for": [ 2, {          /// for < esLint@^6.1.0
  "components": [ "Label" ],
  "required": {
    "every": [ "nesting", "id" ]
  },
  "allowChildren": false
}],
'jsx-a11y/label-has-associated-control': [ /// for esLint@^6.1.0
  2,
  {
    labelComponents: ['CustomInputLabel'],
    labelAttributes: ['label'],
    controlComponents: ['CustomInput'],
    depth: 3,
  },
],

/// for react/jsx 配置
'react/jsx-filename-extension': [
  1,
  { extensions: ['.js', '.jsx', '.tsx'] },
],
'react/jsx-wrap-multilines': 0,
'react/jsx-boolean-value': 0,
'react/prop-types': 0,
'react/forbid-prop-types': 0,
'react/jsx-no-bind': 0,
'react/jsx-one-expression-per-line': 0,
'react/jsx-tag-spacing': [1, { beforeSelfClosing: 'always' }],

// ==> @typescript-eslint 配置
'@typescript-eslint/indent': 0,
'@typescript-eslint/interface-name-prefix': 0,
'@typescript-eslint/explicit-member-accessibility': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/camelcase': 0,

}, settings: { polyfills: [‘fetch’, ‘promises’, ‘url’, ‘object-assign’], }, };

Configuration

What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.



What did you expect to happen?

What actually happened? Please include the actual, raw output from ESLint.

Are you willing to submit a pull request to fix this bug?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
g-planecommented, Jul 8, 2019

That is, the problem is from JetBrain’s ESLint plugin, not ESLint itself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: this.cliEngine is not a constructor
Hi! When I try to set up eslint in webstorm using this guide https://www.jetbrains.com/help/webstorm/eslint.html i get an error message...
Read more >
WebStorm 2018.1.4 + ESLint: TypeError: this.CliEngine is not ...
CliEngineCtor is not a constructor . That is related to updating eslint to 8.0.1. Solution: update WebStorm to the latest version 2021.2.2 or ......
Read more >
Bug: TypeError: this.cliEngine is not a constructor · Issue #15175
I got this error: Syntax Error: TypeError: eslint.CLIEngine is not a constructor & my code won't compile for development.
Read more >
eslint/eslint - Gitter
I'm trying to create some custom rules, but my vue-cli-service build fails after creating a new eslint-plugin, with error TypeError: eslint.CLIEngine is not...
Read more >
TypeError: eslint.CLIEngine is not a constructor-Vue.js
Coding example for the question new VueJS project - eslint-loader - TypeError: eslint.CLIEngine is not a constructor-Vue.js.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found