title: Angular 6 / declare path for library in tsconfig.lib.json
body: <p>I'm trying to configure the paths for an <code>Angular 6</code> library (I have successfully configured the paths for a previous Angular project)</p>
  <p>Here is what is working for my previous app in the <code>tsconfig.json</code> file:</p>
  <pre><code>&quot;compilerOptions&quot;: {
      [...]
      &quot;baseUrl&quot;: &quot;src&quot;,
      &quot;paths&quot;: {
        &quot;@class/*&quot;: [ &quot;app/class/*&quot; ],
        &quot;@services/*&quot;: [ &quot;app/services/*&quot; ],
        &quot;@views/*&quot;: [ &quot;app/views/*&quot; ]
      }
  }
  </code></pre>
  <p>and then use it like for example:</p>
  <pre><code>Import { Item } from '@class/item';
  </code></pre>
  <p>In my new app I'm trying the same way in the <code>tsconfig.**lib**.json</code> file:</p>
  <pre><code>&quot;compilerOptions&quot;: {
      [...]
      &quot;baseUrl&quot;: &quot;src&quot;,
      &quot;paths&quot;: {
        &quot;@class/*&quot;: [ &quot;lib/class/*&quot; ],
        &quot;@services/*&quot;: [ &quot;lib/services/*&quot; ],
        &quot;@views/*&quot;: [ &quot;lib/views/*&quot; ]
      }
  }
  </code></pre>
  <p>I have tried to import a class in a component for my library like this, but it does not work (VSCode cannot find the file):</p>
  <pre><code>Import { Item } from '@class/item';
  </code></pre>
  <p>Note that the <code>import</code> statement in the main project is working:</p>
  <pre><code>Import { Item } from 'myLibrary';
  </code></pre>
  <p>Any idea of what I'm not doing well ?</p>
  <p>Thanks for your help.</p>