bennymeg / ngx-fluent-ui

Angular & online library for Microsoft Fluent UI icons
Apache License 2.0
18 stars 1 forks source link

export 'close' was not found in 'ngx-fluent-ui-icons' #3

Open igoralmeida-neos opened 2 months ago

igoralmeida-neos commented 2 months ago

I'm currently using Angular 10 in my project. I was initially getting the following error:

Could not resolve dependency:
npm ERR! peer @angular/common@">=11" from ngx-fluent-ui-icons@0.2.0

But then managed to install the package using npm install ngx-fluent-ui-icons@0.2.0 --save --legacy-peer-deps

I configured the imports in the AppModule as follows:

import { FluentUiIconsModule } from 'ngx-fluent-ui-icons';
import { heart_24_filled } from 'ngx-fluent-ui-icons';

@NgModule({
  imports: [
FluentUiIconsModule.pick({ heart_24_filled })
]
})

But I'm stuck with the following error:

ERROR in ./src/app/app.module.ts 101:39-44
"export 'heart_24_filled' was not found in 'ngx-fluent-ui-icons'

    ERROR in src/app/app.module.ts:48:10 - error TS2305: Module '"../../node_modules/ngx-fluent-ui-icons/ngx-fluent-ui-icons"' has no exported member 'heart_24_filled'.

    48 import { close } from 'ngx-fluent-ui-icons';

Any ideas on how to solve it?