Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

Commit

Permalink
Update @carbon/icons-angular import (#205)
Browse files Browse the repository at this point in the history
The `@carbon/icons-angular` package does not conform to APF and does not
have a source file at the supposed entry-point root of
`@carbon/icons-angular`. Therefore, the build error
`Module not found: Error: Can't resolve '@carbon/icons-angular'` would
occur.

This updates the import to an actual location, as documented by Carbon's
documentation. The package will still fail to compile, however, as ngcc
seems not to process the entry-point at all.
  • Loading branch information
JoostK authored and mgechev committed Oct 2, 2019
1 parent 8b6caee commit 5fdba65
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions projects/carbonicons-angular-ngcc/src/app/app.module.ts
@@ -1,7 +1,7 @@
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import '@carbon/icons-angular';
import { Download20Module } from '@carbon/icons-angular/lib/download/20';

import { AppComponent } from './app.component';

Expand All @@ -10,7 +10,8 @@ import { AppComponent } from './app.component';
AppComponent
],
imports: [
BrowserModule
BrowserModule,
Download20Module,
],
providers: [],
bootstrap: [AppComponent]
Expand Down

0 comments on commit 5fdba65

Please sign in to comment.