title: Unknown Angular CLI build error
body: <p>I recently upgraded an angular 4.3 to 5.0.0, and I've being to able build locally on my machine. However, when I deploy to the remote machine I get this error when trying to build.</p>
  
  <p>This is the simple build script</p>
  
  <pre><code>#!/bin/bash
  # Deployment script
  
  git pull
  
  yarn install
  
  ./node_modules/.bin/ng build --prod --env=prod
  
  yarn start
  </code></pre>
  
  <p>The build fails and outputs this
  <code>
  ERROR in Error during template compile of 'ɵe'
    Function calls are not supported in decorators but 'ɵmakeDecorator' was called in 'Injectable'
      'Injectable' calls 'ɵmakeDecorator'.
  </code></p>
  
  <p>I've never seen this error before. I've refactored the app to use relative paths for imports with no luck.
  I'm completely out of ideas at this point.</p>