NathanWalker / nativescript-ngx-fonticon

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

Fixed TypeError: data.split is not a function #71

Closed dotnetdreamer closed 1 year ago

dotnetdreamer commented 3 years ago

When adding the below code in Angular, its throwing error.


TypeError: data.split is not a function
JS:     at TNSFontIconService.mapCss (file: node_modules\nativescript-ngx-fonticon\__ivy_ngcc__\fesm2015\nativescript-ngx-fonticon.js:93:0)
JS:     at file: node_modules\nativescript-ngx-fonticon\__ivy_ngcc__\fesm2015\nativescript-ngx-fonticon.js:68:0
JS:     at new ZoneAwarePromise (file: node_modules\@nativescript\zone-js\zone-nativescript.js:902:0)
JS:     at TNSFontIconService.loadCssData (file: node_modules\nativescript-ngx-fonticon\__ivy_ngcc__\fesm2015\nativescript-ngx-fonticon.js:65:0)
JS:     at loadData (file: node_modules\nativescript-ngx-fonticon\__ivy_ngcc__\fesm2015\nativescript-ngx-fonticon.js:32:0)
JS:     at TNSFontIconService.loadCss (file: node_modules\nativescript-ngx-fonticon\__ivy_ngcc__\fesm2015\nativescript-ngx-fonticon.js:38:0)
JS:     at new TNSFontIconService (file: node_modules\nativescript-ngx-fonticon\__ivy_ngcc__\fesm2015\nativescript-ngx-fonticon.js:13:0)
JS:     at Object.TNSFontIconService_Factory [as factory] (file: node_modules\nativescript-ngx-fonticon\__ivy_ngcc__\fesm2015\nativescript-ngx-fonticon.js:126:66)
JS:     at R3Injector.hydrate (file:///data/data/org.nativescript.mawaqif/f...