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.

error upgrading from 22.7.0 to 23.1.1

See original GitHub issue

I’m seeing this error loading the jest plugin in my config. Any ideas?

Error: Failed to load plugin 'jest' declared in 'aaa-static/.eslintrc.js': Cannot find module 'eslint-plugin-jest'
Require stack:
- ~/projects/aaa/__placeholder__.js

Error: Failed to load plugin 'jest' declared in 'aaa-static/.eslintrc.js': Cannot find module 'eslint-plugin-jest'
Require stack:
- ~/projects/aaa/__placeholder__.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
    at Function.resolve (internal/modules/cjs/helpers.js:30:19)
    at Object.resolve (~/projects/aaa/aaa-static/node_modules/eslint/lib/shared/relative-module-resolver.js:44:50)
    at ConfigArrayFactory._loadPlugin (~/projects/aaa/aaa-static/node_modules/eslint/lib/cli-engine/config-array-factory.js:957:39)
    at names.reduce (~/projects/aaa/aaa-static/node_modules/eslint/lib/cli-engine/config-array-factory.js:846:33)
    at Array.reduce (<anonymous>)
    at ConfigArrayFactory._loadPlugins (~/projects/aaa/aaa-static/node_modules/eslint/lib/cli-engine/config-array-factory.js:842:22)
    at ConfigArrayFactory._normalizeObjectConfigDataBody (~/projects/aaa/aaa-static/node_modules/eslint/lib/cli-engine/config-array-factory.js:665:32)
    at _normalizeObjectConfigDataBody.next (<anonymous>)
    at ConfigArrayFactory._normalizeObjectConfigData (~/projects/aaa/aaa-static/node_modules/eslint/lib/cli-engine/config-array-factory.js:594:20)
Process finished with exit code -1

Here is my config file

module.exports = {
  extends: [ 'react-app' ],
  root: true,
  settings: {
    react: {
      version: '16.10'
    }
  },
  plugins: [ 'jest' ],
  rules: {
    semi: [ 'warn', 'always' ],
    'no-fallthrough': 'warn',
    'no-undef': 'warn', // !
    'no-unused-vars': ['warn', {'args': 'after-used'}],
    'prefer-const': 'warn',
    'jest/expect-expect': 'error',
    'jest/no-commented-out-tests': 'error',
    'jest/valid-expect': 'error',
  }
};

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ldevebercommented, Aug 7, 2020

Yes!

0reactions
SimenBcommented, Aug 5, 2020

Nice! So we can close this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

eslint-plugin-jest - UNPKG
8, * update to typescript-eslint@4 ... 24, * set `no-jasmine-globals` to `error` in recommended ruleset ...
Read more >
eslint-plugin-jest - NPM Package Overview - Socket - Socket.dev
This plugin exports a recommended configuration that enforces good testing practices. To enable this configuration use the extends property in your .eslintrc ...
Read more >
Index (Android Tools sdk-common library) - Javadoc.io
Adds a new source file. addError(String) - Method in class com.android.ide.common.resources.ScanningContext: Adds the given error to the scanning context.
Read more >
Stripe - Swift Package Index
Updating to a newer version of the SDK? ... We welcome contributions of any kind including new features, bug fixes, and documentation improvements....
Read more >
2.69598f97.chunk.js
n // Popper 1 is broken in this case and never had a bug report so let's assume\n ... This means\n // it...
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