title: Angular 7 Can't find a way to get tsconfig.json path mapping works
body: <p>I've started an angular 7 project and I'm trying to configure the "path mapping" on angular.json to change my import way from this:</p>
  
  <pre><code>import { environment } from '../../../environments/environment';
  </code></pre>
  
  <p>to this:</p>
  
  <pre><code>import { environment } from '@environments/environment';
  </code></pre>
  
  <p>I've done this config on the root level tsconfig.json file:</p>
  
  <pre><code>"compilerOptions": {
          "baseUrl": "src", // This must be specified if "paths" is.
           ...
          "paths": {
              "@app/*": ["app/*"],
              "@config/*": ["app/_config/*"],
              "@environments/*": ["environments/*"],
              "@shared/*": ["app/_shared/*"],
              "@helpers/*": ["helpers/*"]
          },
  ...
  </code></pre>
  
  <p>But I also get this error on the cli</p>
  
  <pre><code>ERROR in src/app/errors/not-foud/not-found.component.ts(2,29): error TS2307: Cannot find module '@environments/environment'
  </code></pre>
  
  <p>Is there something I'm missing?</p>