title: Getting error (0 , _schemaUtils.default) is not a function when running CRA on Docker
body: <h1>Update</h1>
  <p>Fixed it by running</p>
  <pre><code>rm -rf node_modules &amp;&amp; rm -rf yarn.lock &amp;&amp; yarn &amp;&amp; docker-compose -f docker-compose.dev.yml up --build
  </code></pre>
  <hr />
  <p>I'm having trouble running my app with Docker.</p>
  <p>Fist, I build the image,</p>
  <pre><code>// build image
  $ docker-compose -f docker-compose.dev.yml up
  </code></pre>
  <p><code>docker-compose.dev.yml</code>:</p>
  <pre><code>version: '3.8'
  services:
      print:
          stdin_open: true
          build:
              context: .
              dockerfile: Dockerfile.dev
          ports:
              - '3000:3000'
          volumes:
              - '.:/app'
              - '/app/node_modules'
  </code></pre>
  <p><code>Dockerfile.dev</code>:</p>
  <pre><code>FROM node:alpine
  
  WORKDIR /app
  
  COPY package.json /app
  
  RUN yarn install
  
  COPY . .
  
  CMD [&quot;yarn&quot;, &quot;start&quot;]
  </code></pre>
  <p><code>package.json</code>:</p>
  <pre><code>{
      &quot;name&quot;: &quot;pprb-frontend&quot;,
      &quot;version&quot;: &quot;0.1.0&quot;,
      &quot;private&quot;: true,
      &quot;dependencies&quot;: {
          &quot;@material-ui/core&quot;: &quot;^4.11.0&quot;,
          &quot;@material-ui/icons&quot;: &quot;^4.9.1&quot;,
          &quot;@material-ui/lab&quot;: &quot;^4.0.0-alpha.56&quot;,
          &quot;@types/node&quot;: &quot;^12.0.0&quot;,
          &quot;@types/react&quot;: &quot;^16.9.53&quot;,
          &quot;@types/react-dom&quot;: &quot;^16.9.8&quot;,
          &quot;@types/react-redux&quot;: &quot;^7.1.11&quot;,
          &quot;chart.js&quot;: &quot;^2.9.4&quot;,
          &quot;formik&quot;: &quot;^2.2.5&quot;,
          &quot;history&quot;: &quot;^5.0.0&quot;,
          &quot;react&quot;: &quot;^17.0.1&quot;,
          &quot;react-chartjs-2&quot;: &quot;^2.11.1&quot;,
          &quot;react-dom&quot;: &quot;^17.0.1&quot;,
          &quot;react-redux&quot;: &quot;^7.2.2&quot;,
          &quot;react-redux-toastr&quot;: &quot;^7.6.5&quot;,
          &quot;react-router-dom&quot;: &quot;^6.0.0-beta.0&quot;,
          &quot;react-scripts&quot;: &quot;4.0.0&quot;,
          &quot;redux&quot;: &quot;^4.0.5&quot;,
          &quot;redux-devtools-extension&quot;: &quot;^2.13.8&quot;,
          &quot;redux-thunk&quot;: &quot;^2.3.0&quot;,
          &quot;typescript&quot;: &quot;^4.0.3&quot;
      },
      &quot;devDependencies&quot;: {
          &quot;@types/react-redux-toastr&quot;: &quot;^7.6.0&quot;,
          &quot;@types/react-router&quot;: &quot;^5.1.8&quot;,
          &quot;@types/react-router-dom&quot;: &quot;^5.1.6&quot;,
          &quot;@types/styled-components&quot;: &quot;^5.1.4&quot;,
          &quot;@typescript-eslint/eslint-plugin&quot;: &quot;^4.3.0&quot;,
          &quot;@typescript-eslint/parser&quot;: &quot;^4.3.0&quot;
      },
      &quot;scripts&quot;: {
          &quot;start&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;reload&quot;: &quot;rm -rf node_modules &amp;&amp; yarn&quot;,
          &quot;reload:start&quot;: &quot;yarn reload &amp;&amp; yarn start&quot;
      },
  }
  </code></pre>
  <p>What's going on here? I took a look <a href="https://stackoverflow.com/a/64881883/2891356">here</a>, but that doesn't resolve my issue.</p>
  <p>Docker image, if necessary is: <code>docker pull mkhoussid/cra_img:secondtry</code>. Running it throws the error,</p>
  <pre><code>(0 , _schemaUtils.default) is not a function
  </code></pre>
  <h1>Edit</h1>
  <p>I've run the below:</p>
  <pre><code>$ docker container prune
  $ docker image prune
  $ docker rmi $(sudo docker images -aq) --force
  $ docker-compose -f docker-compose.dev.yml up --build
  </code></pre>
  <p>But that didn't help.</p>