title: Cannot find module '@storybook/react' or its corresponding type declarations. On Heroku
body: <p>I'm having in issue when my app gets deployed on heroku with the next message.</p>
  <p><a href="https://i.stack.imgur.com/FeRcQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FeRcQ.png" alt="enter image description here" /></a></p>
  <p>My app is running on typescript/react that I want to deploy to Heroku. I am using <code>storybook/react</code> in my application.</p>
  <p>This is my <code>tsconfig.json</code> file</p>
  <pre><code>{
    &quot;compilerOptions&quot;: {
      &quot;target&quot;: &quot;es5&quot;,
      &quot;lib&quot;: [
        &quot;dom&quot;,
        &quot;dom.iterable&quot;,
        &quot;esnext&quot;
      ],
      &quot;allowJs&quot;: true,
      &quot;skipLibCheck&quot;: true,
      &quot;esModuleInterop&quot;: true,
      &quot;downlevelIteration&quot;: true,
      &quot;allowSyntheticDefaultImports&quot;: true,
      &quot;strict&quot;: true,
      &quot;forceConsistentCasingInFileNames&quot;: true,
      &quot;noFallthroughCasesInSwitch&quot;: true,
      &quot;module&quot;: &quot;esnext&quot;,
      &quot;moduleResolution&quot;: &quot;node&quot;,
      &quot;resolveJsonModule&quot;: true,
      &quot;isolatedModules&quot;: true,
      &quot;noEmit&quot;: true,
      &quot;jsx&quot;: &quot;react-jsx&quot;
    },
    &quot;include&quot;: [
      &quot;src/**/*&quot;
    ]
  }
  </code></pre>
  <p>The structure of my project is:</p>
  <pre><code>- public
  - src
     - components
       - (In here I have all the imports to storybook)
    - connectors
    - hooks
    - layout
    - state
    - theme
    - utils
  </code></pre>
  <p>I have storybook/react in <code>devDependencies</code>:</p>
  <pre><code> &quot;devDependencies&quot;: {
      &quot;@storybook/addon-actions&quot;: &quot;^6.3.1&quot;,
      &quot;@storybook/addon-essentials&quot;: &quot;^6.3.1&quot;,
      &quot;@storybook/addon-links&quot;: &quot;^6.3.1&quot;,
      &quot;@storybook/node-logger&quot;: &quot;^6.3.1&quot;,
      &quot;@storybook/preset-create-react-app&quot;: &quot;^3.1.6&quot;,
      &quot;@storybook/react&quot;: &quot;^6.3.8&quot;,
      &quot;@types/node&quot;: &quot;^16.7.13&quot;,
      &quot;@types/react-router-dom&quot;: &quot;^5.1.7&quot;,
      &quot;colors&quot;: &quot;^1.4.0&quot;,
      &quot;create-react-component-folder&quot;: &quot;^0.3.7&quot;,
      &quot;husky&quot;: &quot;^7.0.1&quot;,
      &quot;prettier&quot;: &quot;^2.3.2&quot;,
      &quot;yargs&quot;: &quot;^17.0.1&quot;
    }
  </code></pre>
  <p>I also have this too in my dependencies object in package.json:</p>
  <pre><code>&quot;@types/jest&quot;: &quot;^26.0.23&quot;,
  &quot;@types/react&quot;: &quot;^17.0.11&quot;,
  &quot;@types/react-dom&quot;: &quot;^17.0.8&quot;,
  </code></pre>
  <p>I don't know what I have wrong. The worst thing is that if I run the app locally it works but on Heroku it just breaks. Any idea of that this could be? Thanks!</p>