title: TypeError: (0 , _schemaUtils.default) is not a function
body: <p>I have a simple React app created with <code>create-react-app</code> that runs fine on localhost. I'm now trying to Dockerify the app. Here's my package.json:</p>
  <pre><code>{
    &quot;name&quot;: &quot;yeet&quot;,
    &quot;version&quot;: &quot;0.1.0&quot;,
    &quot;engines&quot;: {
      &quot;node&quot;: &quot;12.x&quot;
    },
    &quot;scripts&quot;: {
      &quot;client&quot;: &quot;react-scripts start&quot;,
      &quot;build&quot;: &quot;react-scripts build&quot;,
      &quot;test&quot;: &quot;react-scripts test&quot;,
      &quot;eject&quot;: &quot;react-scripts eject&quot;,
      &quot;start&quot;: &quot;node server.js&quot;,
      &quot;production&quot;: &quot;npm run build &amp;&amp; npm run start&quot;
    },
    &quot;private&quot;: true,
    &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;axios&quot;: &quot;^0.21.0&quot;,
      &quot;body-parser&quot;: &quot;^1.19.0&quot;,
      &quot;cors&quot;: &quot;^2.8.5&quot;,
      &quot;express&quot;: &quot;^4.17.1&quot;,
      &quot;express-session&quot;: &quot;^1.17.1&quot;,
      &quot;mongoose&quot;: &quot;^5.10.13&quot;,
      &quot;mysql&quot;: &quot;^2.18.1&quot;,
      &quot;react&quot;: &quot;^17.0.1&quot;,
      &quot;react-dom&quot;: &quot;^17.0.1&quot;,
      &quot;react-scripts&quot;: &quot;4.0.0&quot;,
      &quot;web-vitals&quot;: &quot;^0.2.4&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;babel-core&quot;: &quot;*&quot;,
      &quot;babel-loader&quot;: &quot;*&quot;,
      &quot;babel-preset-es2015&quot;: &quot;*&quot;,
      &quot;babel-preset-react&quot;: &quot;*&quot;,
      &quot;babel-preset-stage-0&quot;: &quot;*&quot;
    },
    &quot;babel&quot;: {
      &quot;presets&quot;: [
        &quot;@babel/env&quot;,
        &quot;@babel/react&quot;,
        &quot;babel-preset-stage-0&quot;
      ],
      &quot;env&quot;: {
        &quot;start&quot;: {
          &quot;presets&quot;: [
            &quot;@babel/env&quot;,
            &quot;@babel/react&quot;,
            &quot;babel-preset-stage-0&quot;
          ]
        }
      }
    }
  }
  </code></pre>
  <p>And here's my Dockerfile:</p>
  <pre><code># Specify base image
  FROM node:12.19.0-alpine3.10
  
  # Specify app location in host
  WORKDIR /app
  
  # Copy the dependency list
  COPY package.json ./
  
  # Install app dependencies
  RUN npm install
  
  # Copy app code to host
  COPY . .
  
  # Open specified port
  EXPOSE 3000:3000
  
  # Start the app
  CMD [&quot;npm&quot;, &quot;run&quot;, &quot;production&quot;]
  </code></pre>
  <p>I build the image with:</p>
  <pre><code>docker build --tag yeet .
  </code></pre>
  <p>Then I run the image as a container with:</p>
  <pre><code>docker run --publish 3000:3000 yeet
  </code></pre>
  <p>This throws:</p>
  <p>$ docker run --publish 3000:3000 yeet</p>
  <blockquote>
  <p>yeet@0.1.0 production /app
  npm run build &amp;&amp; npm run start</p>
  <p>yeet@0.1.0 build /app
  react-scripts build</p>
  <p>/app/node_modules/eslint-webpack-plugin/dist/options.js:62   (0,
  _schemaUtils.default)(_options.default, options, {
  ^</p>
  <p>TypeError: (0 , _schemaUtils.default) is not a function
  at getOptions (/app/node_modules/eslint-webpack-plugin/dist/options.js:62:28)
  at new ESLintWebpackPlugin (/app/node_modules/eslint-webpack-plugin/dist/index.js:30:44)
  at module.exports (/app/node_modules/react-scripts/config/webpack.config.js:749:7)
  at Object. (/app/node_modules/react-scripts/scripts/build.js:67:16)
  at Module._compile (internal/modules/cjs/loader.js:1015:30)
  at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
  at Module.load (internal/modules/cjs/loader.js:879:32)
  at Function.Module._load (internal/modules/cjs/loader.js:724:14)
  at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
  at internal/main/run_main_module.js:17:47 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! yeet@0.1.0 build: <code>react-scripts build</code>
  npm ERR! Exit status 1 npm ERR!  npm ERR! Failed at the yeet@0.1.0
  build script. npm ERR! This is probably not a problem with npm. There
  is likely additional logging output above.</p>
  <p>npm ERR! A complete log of this run can be found in: npm ERR!<br />
  /root/.npm/_logs/2020-11-07T12_47_03_927Z-debug.log npm ERR! code
  ELIFECYCLE npm ERR! errno 1 npm ERR! yeet@0.1.0 production: <code>npm run build &amp;&amp; npm run start</code> npm ERR! Exit status 1 npm ERR!  npm ERR!
  Failed at the yeet@0.1.0 production script. npm ERR! This is
  probably not a problem with npm. There is likely additional logging
  output above.</p>
  <p>npm ERR! A complete log of this run can be found in: npm ERR!<br />
  /root/.npm/_logs/2020-11-07T12_47_03_923Z-debug.log</p>
  </blockquote>
  <p>Does anyone see what I'm doing wrong? Any pointers would be super helpful!</p>