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

TypeError: eslint_1.CLIEngine is not a constructor in Node 16.11.1 #72

Open
jfeldstein opened this issue Oct 25, 2021 · 6 comments
Open

Comments

@jfeldstein
Copy link

This error:

[ESLINT] Run With Configuration  {
  extensions: [ '.js', '.jsx', '.ts', '.tsx' ],
  ignore: true,
  useEslintrc: true,
  rulePaths: [],
  errorOnUnmatchedPattern: false,
  fix: false,
  configFile: undefined
}
##[error]TypeError: eslint_1.CLIEngine is not a 
##[error]eslint_1.CLIEngine is not a constructor

Is caused by the following workflow YML:

name: pull-request

on:
  pull_request:
    branches: [ master ]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Check out code
        uses: actions/checkout@v2

      - name: Set up node 
        uses: actions/setup-node@v2
        with:
          node-version: '16.11.1'
          cache: 'yarn'

      - name: Install dependencies
        run: yarn

      - name: ESLint Plus
        uses: bradennapier/eslint-plus-action@v3

      - name: Run tests 
        run: yarn test
@jfeldstein
Copy link
Author

Same issue, but with node 14.18.1

@jfeldstein
Copy link
Author

It does work with 16.13.0 when using npm

@Maggi64
Copy link

Maggi64 commented Dec 22, 2021

Isn't this issue related to breaking changes in eslint 8 and not node?

@Gaeta
Copy link

Gaeta commented Dec 26, 2021

Any update on this?

@einSelbst
Copy link

might be helpful for the repo owner to fix the issue https://eslint.org/docs/8.0.0/user-guide/migrating-to-8.0.0#the-cliengine-class-has-been-removed

@Maggi64
Copy link

Maggi64 commented Jan 20, 2022

Added a PR: #73

This can already be used with:

- name : Run eslint on changed files
  uses : Maggi64/eslint-plus-action@master

einSelbst added a commit to einSelbst/overnext that referenced this issue Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants