title: Heroku: error compiling Typescript with graphql files - error TS2307: Cannot find module 'graphql' or its corresponding type declarations
body: <p>So i'm attempting to compile a typesscript project with graphql files to heroku and am receiving the following error message:</p>
  <pre><code>node_modules/@types/graphql-upload/index.d.ts(10,35): error TS2307: Cannot find module 'graphql' or its corresponding type declarations.
  </code></pre>
  <p>My tsconfig.json reads as follows:</p>
  <pre><code>{
      &quot;compilerOptions&quot;: {
        &quot;outDir&quot;: &quot;src&quot;,
        &quot;rootDir&quot;: &quot;src&quot;,
        &quot;lib&quot;: [&quot;ESNext&quot;],
        &quot;target&quot;: &quot;ES6&quot;,
        &quot;esModuleInterop&quot;: true,
        &quot;strict&quot;: true,
        &quot;types&quot;: [&quot;@types/graphql-upload&quot;]
      },
      &quot;include&quot;: [&quot;src/**/*&quot;],
      &quot;exclude&quot;: [&quot;&quot;]
  }
  </code></pre>
  <p>and my package.json reads as follows:</p>
  <pre><code>{
    &quot;engines&quot;: {
      &quot;node&quot;: &quot;10.16.0&quot;,
      &quot;npm&quot;: &quot;6.5.0&quot;
    },
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;node src/index&quot;,
      &quot;clean&quot;: &quot;rm -rf src&quot;,
      &quot;build&quot;: &quot;tsc&quot;,
    },
    &quot;dependencies&quot;: {
      &quot;@types/graphql-upload&quot;: &quot;^8.0.3&quot;,
      &quot;@types/node-fetch&quot;: &quot;^2.5.7&quot;,
      &quot;graphql&quot;: &quot;^14.7.0&quot;,
      &quot;graphql-cli&quot;: &quot;^3.0.5&quot;,
      &quot;graphql-import&quot;: &quot;^0.7.1&quot;,
    },
    &quot;devDependencies&quot;: {
      &quot;@types/node&quot;: &quot;^14.0.19&quot;,
      &quot;ts-node&quot;: &quot;^8.10.2&quot;,
      &quot;ts-node-dev&quot;: &quot;^1.0.0-pre.50&quot;,
      &quot;typescript&quot;: &quot;^3.9.6&quot;
    }
  </code></pre>
  <p>My file directory is as follows:</p>
  <pre><code>src -
      generated -
                prisma.graphql
      resolvers -
                Mutation.ts
                Query.ts
  index.ts
  schema.graphql
  </code></pre>
  <p>What am I overlooking and how do I resolve this?</p>