title: TypeScript import issues in apollo-server-express, apollo-server & apollo-cache-control
body: <p>I'm trying to update from &quot;<strong>apollo-server&quot;: &quot;^2.9.4&quot;</strong> and <strong>&quot;apollo-server-express&quot;</strong>: &quot;^2.9.4&quot; to <strong>2.12.0 version</strong> in Typescript, During the build process of the app I get the <strong>following error:</strong></p>
  <blockquote>
  <p>node_modules/apollo-server-express/node_modules/apollo-server-core/dist/plugin/index.d.ts:1:13</p>
  <p>error TS1005: '=' expected.</p>
  </blockquote>
  <p><strong>1 import type { ApolloServerPlugin } from 'apollo-server-plugin-base';</strong></p>
  <p><a href="https://i.stack.imgur.com/ckCH2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ckCH2.png" alt="enter image description here" /></a></p>
  <p>I have not found the fix for this yet, I've deleted node_modules folder and package-lock.json but still not working.</p>
  <p>It would be nice to have some help....</p>
  <pre><code>tsconfig.json
  
  
  {
    &quot;compilerOptions&quot;: {
      &quot;target&quot;: &quot;es5&quot;,
      &quot;moduleResolution&quot;: &quot;node&quot;,
      &quot;strict&quot;: true,
      &quot;esModuleInterop&quot;: true,
      &quot;skipLibCheck&quot;: true,
      &quot;outDir&quot;: &quot;./dist&quot;,
      &quot;declaration&quot;: true
    },
    &quot;include&quot;: [
      &quot;src/**/*&quot;
    ],
    &quot;exclude&quot;: [
      &quot;node_modules&quot;,
      &quot;**/*.spec.ts&quot;,
      &quot;**/*.test.ts&quot;
  
    ]
  
  }
  
  </code></pre>
  <pre><code>
  
  package.json
  
  &quot;dependencies&quot;: {
      &quot;@apollo/federation&quot;: &quot;^0.10.2&quot;,
      &quot;@types/bluebird&quot;: &quot;^3.5.27&quot;,
      &quot;@types/cookie-parser&quot;: &quot;^1.4.2&quot;,
      &quot;@types/jest&quot;: &quot;^24.0.19&quot;,
      &quot;@types/mysql&quot;: &quot;^2.15.7&quot;,
      &quot;@types/nanoid&quot;: &quot;^2.0.0&quot;,
      &quot;@types/node&quot;: &quot;^14.10.1&quot;,
      &quot;@types/umzug&quot;: &quot;^2.2.2&quot;,
      &quot;@types/validator&quot;: &quot;^10.11.3&quot;,
      &quot;apollo-cache-control&quot;: &quot;^0.10.0&quot;,
      &quot;apollo-cache-inmemory&quot;: &quot;^1.6.6&quot;,
      &quot;apollo-client&quot;: &quot;^2.6.4&quot;,
      &quot;apollo-datasource-rest&quot;: &quot;^0.6.1&quot;,
      &quot;apollo-link&quot;: &quot;^1.2.12&quot;,
      &quot;apollo-link-context&quot;: &quot;^1.0.20&quot;,
      &quot;apollo-link-http&quot;: &quot;^1.5.17&quot;,
      &quot;apollo-link-rest&quot;: &quot;^0.7.3&quot;,
      &quot;apollo-link-schema&quot;: &quot;^1.2.3&quot;,
      &quot;apollo-server&quot;: &quot;^2.12.0&quot;,
      &quot;apollo-server-express&quot;: &quot;^2.12.0&quot;,
      &quot;apollo-server-plugin-response-cache&quot;: &quot;^0.3.1&quot;,
      &quot;apollo-server-testing&quot;: &quot;^2.9.0&quot;,
      &quot;axios&quot;: &quot;^0.19.2&quot;,
      &quot;cookie-parser&quot;: &quot;^1.4.4&quot;,
      &quot;cron&quot;: &quot;^1.7.2&quot;,
      &quot;elastic-apm-node&quot;: &quot;^3.3.0&quot;,
      &quot;express&quot;: &quot;^4.17.1&quot;,
      &quot;express-graphql&quot;: &quot;^0.9.0&quot;,
      &quot;graphql&quot;: &quot;^14.5.8&quot;,
      &quot;graphql-import&quot;: &quot;^0.7.1&quot;,
      &quot;graphql-schema-linter&quot;: &quot;^0.2.1&quot;,
      &quot;jsonwebtoken&quot;: &quot;^8.5.1&quot;,
      &quot;jwk-to-pem&quot;: &quot;^2.0.3&quot;,
      &quot;kafka-node&quot;: &quot;^4.1.3&quot;,
      &quot;link&quot;: &quot;^0.1.5&quot;,
      &quot;log4js&quot;: &quot;^5.0.0&quot;,
      &quot;mysql2&quot;: &quot;^1.7.0&quot;,
      &quot;nanoid&quot;: &quot;^3.1.7&quot;,
      &quot;node&quot;: &quot;^14.5.0&quot;,
      &quot;node-cache&quot;: &quot;^5.1.1&quot;,
      &quot;node-fetch&quot;: &quot;^2.6.0&quot;,
      &quot;promise-retry&quot;: &quot;^1.1.1&quot;,
      &quot;rimraf&quot;: &quot;^3.0.0&quot;,
      &quot;save&quot;: &quot;^2.4.0&quot;,
      &quot;sequelize&quot;: &quot;^5.19.5&quot;,
      &quot;sequelize-cli&quot;: &quot;^5.5.1&quot;,
      &quot;soap&quot;: &quot;^0.30.0&quot;,
      &quot;ts-jest&quot;: &quot;^24.1.0&quot;,
      &quot;typescript&quot;: &quot;^3.6.3&quot;,
      &quot;umzug&quot;: &quot;^2.2.0&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@types/graphql&quot;: &quot;^14.5.0&quot;,
      &quot;graphql-tag&quot;: &quot;^2.10.1&quot;,
      &quot;graphql-tools&quot;: &quot;^4.0.5&quot;,
      &quot;jest&quot;: &quot;^24.8.0&quot;,
      &quot;jest-cli&quot;: &quot;^24.8.0&quot;
    },
    &quot;jest&quot;: {
      &quot;testEnvironment&quot;: &quot;node&quot;,
      &quot;testPathIgnorePatterns&quot;: [
        &quot;/node_modules/&quot;,
        &quot;/dist/&quot;
      ],
  
  </code></pre>