title: eslint-config-react-app/jest': Cannot read property 'meta' of undefined
body: <p>I create a project with create-react-app. I get this error when i run <code>docker build frontend -t my-frontend .</code> :</p>
  <pre><code>&gt; frontend@0.1.0 build /app
  &gt; react-scripts build
  Creating an optimized production build...
  Failed to compile.
  Failed to load plugin 'jest' declared in 'package.json » eslint-config-react-app/jest': Cannot read property 'meta' of undefined
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! frontend@0.1.0 build: `react-scripts build`
  npm ERR! Exit status 1
  npm ERR! 
  npm ERR! Failed at the frontend@0.1.0 build script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /root/.npm/_logs/2022-01-27T11_11_23_140Z-debug.log
  The command '/bin/sh -c npm run build' returned a non-zero code: 1
  </code></pre>
  <p>how should i fix it? i tried <code>npm install</code>,<code>npm install .</code>,<code>npm audit fix</code>.</p>
  <p>this is jest in my <code>package.json</code> :</p>
  <pre><code>{
    ...
    &quot;dependencies&quot;: {
      &quot;@testing-library/jest-dom&quot;: &quot;^5.11.4&quot;,
      &quot;@testing-library/react&quot;: &quot;^11.1.0&quot;,
      &quot;@testing-library/user-event&quot;: &quot;^12.1.10&quot;,
      ...,
      &quot;web-vitals&quot;: &quot;^1.0.1&quot;
    },
    &quot;eslintConfig&quot;: {
      &quot;extends&quot;: [
        &quot;react-app&quot;,
        &quot;react-app/jest&quot;
      ]
    },
    ...
  }
  </code></pre>
  <p>and this is jest in my <code>package.lock.json</code> :</p>
  <pre><code>&quot;eslint-plugin-jest&quot;: {
        &quot;version&quot;: &quot;24.1.3&quot;,
        &quot;resolved&quot;: &quot;https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-24.1.3.tgz&quot;,
        &quot;integrity&quot;: &quot;...&quot;,
        &quot;requires&quot;: {
          &quot;@typescript-eslint/experimental-utils&quot;: &quot;^4.0.1&quot;
        }
      },
  </code></pre>
  <p>I also saw <a href="https://stackoverflow.com/questions/56262332/eslint-plugin-jest-gives-eslint-stack-trace-typeerror-cannot-read-property-m">eslint-plugin-jest gives &quot;ESLint stack trace: TypeError: Cannot read property &#39;meta&#39; of undefined&quot;</a> that says: &quot; This was a temporary issue in 22.6 up to 22.6.2&quot; but my version is 24.1.3 .</p>