title: How to fix Error parsing triggers: Cannot find module '../../ when deploying Firebase Functions on Gitlab CI
body: <p>I have a Firebase project with Typescript functions</p>
  <p>When I install, build and deploy from my console using firebase deploy all works fine.</p>
  <p>But, when I try to do the same using my .gitlab-ci.yml script I get an error that it can't find my relative import.</p>
  <pre><code>Error: Error parsing triggers: Cannot find module '../../config/version'
  Require stack:
  </code></pre>
  <p>The Typescript code is:</p>
  <pre><code>// utilsController.ts
  import { serverVersion } from '../../config/version'
  </code></pre>
  <p>And that is converted to</p>
  <pre><code>// utilsController.js
  const version_1 = require(&quot;../../config/version&quot;);
  </code></pre>
  <p>And apparently firebase deploy does not like this when running on Gitlab CI, but it works without a problem from my machine.</p>
  <p>My tsconfig.json looks like this:</p>
  <pre><code>{
    &quot;compilerOptions&quot;: {
      /* Basic Options */
      &quot;incremental&quot;: true,
      &quot;module&quot;: &quot;commonjs&quot;,
      &quot;outDir&quot;: &quot;lib&quot;,
      &quot;target&quot;: &quot;es2015&quot;,
  
      /* Strict Type-Checking Options */
      &quot;alwaysStrict&quot;: true,
      &quot;noImplicitAny&quot;: true,
      &quot;noImplicitThis&quot;: true,
      &quot;strict&quot;: true,
      &quot;strictBindCallApply&quot;: true,
      &quot;strictFunctionTypes&quot;: true,
      &quot;strictNullChecks&quot;: true,
      &quot;strictPropertyInitialization&quot;: true,
  
      /* Additional Checks */
      &quot;noFallthroughCasesInSwitch&quot;: true,
      &quot;noImplicitReturns&quot;: true,
      &quot;noUnusedLocals&quot;: true,
      &quot;noUnusedParameters&quot;: true,
  
      /* Module Resolution Options */
      &quot;esModuleInterop&quot;: true,
      &quot;moduleResolution&quot;: &quot;node&quot;,
      &quot;resolveJsonModule&quot;: true,
  
      /* Experimental Options */
      &quot;emitDecoratorMetadata&quot;: true,
      &quot;experimentalDecorators&quot;: true,
  
      /* Advanced Options */
      &quot;forceConsistentCasingInFileNames&quot;: true,
      &quot;sourceMap&quot;: true
    },
    &quot;compileOnSave&quot;: true,
    &quot;include&quot;: [
      &quot;src&quot;
    ]
  }
  </code></pre>