NathanWalker / nativescript-ngx-fonticon

Use custom font icon collections seamlessly with NativeScript + Angular.
MIT License
76 stars 39 forks source link

Getting 'undefined' wit AoT (web-pack plugin) #30

Closed ADjenkov closed 7 years ago

ADjenkov commented 7 years ago

Hi guys,

I'm getting undefined in text when using as [text]="('fa-music' | fonticon)" Testing on {N} 3.0.1 android app with Angular 2 and enabled AoT using "nativescript-dev-webpack": "^0.5.0", and nativescript-ngx-fonticon": "^2.2.1 . I'm pretty sure that this was working in some previous versions.

It works when NOT in Web-pack scenario npm run start-android-bundle Any suggestions?

ADjenkov commented 7 years ago

Sorry for the issue , I've missed the https://docs.nativescript.org/tooling/bundling-with-webpack#bundling-extra-assets part