peoplewareDo / nativescript-svg

Nativescript plugin - support for .SVG file format
Other
70 stars 55 forks source link

SVG Images are not displaying #49

Open sohambarc opened 3 years ago

sohambarc commented 3 years ago

IS this repository is still maintained? I am getting an error and also the svg images are not displaying in android emulator.

ng --version

Angular CLI: 8.3.29
Node: 12.18.0
OS: linux x64
Angular: 8.2.14

tns --version 6.7.8-2020-06-27-070048-14178

<StackLayout xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:svg="nativescript-svg">
 <svg:SVGImage src="~/images/app_settings.svg" height="250" width="250" /></StackLayout>

The error trace is below :--

ERROR TypeError: definition.fromUrl(...).then is not a function
JS: ERROR CONTEXT {
JS:   "view": {
JS:     "def": {
JS:       "nodeFlags": 16793601,
JS:       "rootNodeFlags": 1,
JS:       "nodeMatchedQueries": 0,
JS:       "flags": 0,
JS:       "nodes": [
JS:         {
JS:           "nodeIndex": 0,
JS:           "parent": null,
JS:           "renderParent": null,
JS:           "bindingIndex": 0,
JS:           "outputIndex": 0,
JS:           "checkIndex": 0,
JS:           "flags": 1,
JS:           "childFlags": 16793601,
JS:           "directChildFlags": 1,
JS:           "childMatchedQueries": 0,
JS:           "matchedQueries": {},
JS:           "matchedQueryIds": 0,
JS:           "references": {},
JS:           "ngContentIndex": null,
JS:           "childCount": 9,
JS:           "bindings": [],
JS:           "bindingFlags": 0,
JS:           "outputs": [],
JS:           "element": {
JS:             "ns": "",
JS:             "name": "StackLayout",
JS:             "attrs": [
JS:               [
JS:                 "",
JS:                 "orientation",
JS:                 "horizontal"
JS:               ]
JS:             ],
JS:             "template": null,
JS:             "componentProvider": null,
JS:             "componentView"...
JS: ERROR Error: Uncaught (in promise): [object Boolean]