Comments (10)
I'm having the same problem. Any solution?
from nativescript-svg.
For me it fails silently
from nativescript-svg.
Same prob. Anyone? Bueller? Anyone? Serially, I get the:
TypeError: Could not load view for: SVGImage.Error: com.tns.NativeScriptException: Failed to find module: "../", relative to...
...not the silent failure
And tns builds without error, it's the tns run. Thanks!
from nativescript-svg.
I kept getting the error from above. Decided to skip the prepared android module and reregistered the element myself for use in angular:
registerElement("Svg", () => require("nativescript-svg").ImageSourceSVG);
Error changed slightly to
Failed to find module: "nativescript-svg", relative to: app/tns_modules/
Here is a full stack trace from the error.
Weird: If I check the generated apk, the folder nativescript-svg is in app/tns_modules.
from nativescript-svg.
I'm having this same error:
Could not load view for: SVGImage.Error: Could not find module '../'.
Has anyone found a solution?
from nativescript-svg.
Experiencing the same error, here is the full error stack
JS: ERROR Error: Uncaught (in promise): TypeError: Could not load view for: SVGImage.Error: com.tns.NativeScriptException: Failed to find module: "../", relative to: app/tns_modules/nativescript-svg/angular/
JS: com.tns.Module.resolvePathHelper(Module.java:146)
JS: com.tns.Module.resolvePath(Module.java:55)
JS: com.tns.Runtime.runScript(Native Method)
JS: com.tns.Runtime.access$2200(Runtime.java:34)
JS: com.tns.Runtime$2.run(Runtime.java:551)
JS: android.os.Handler.handleCallback(Handler.java:751)
JS: android.os.Handler.dispatchMessage(Handler.java:95)
JS: android.os.Looper.loop(Looper.java:154)
JS: android.app.ActivityThread.main(ActivityThread.java:6682)
JS: java.lang.reflect.Method.invoke(Native Method)
JS: com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
JS: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
JS: TypeError: Could not load view for: SVGImage.Error: com.tns.NativeScriptException: Failed to find module: "../", relative to: app/tns_modules/nativescript-svg/angular/
JS: com.tns.Module.resolvePathHelper(Module.java:146)
JS: com.tns.Module.resolvePath(Module.java:55)
JS: com.tns.Runtime.runScript(Native Method)
JS: com.tns.Runtime.access$2200(Runtime.java:34)
JS: com.tns.Runtime$2.run(Runtime.java:551)
JS: android.os.Handler.handleCallback(Handler.java:751)
JS: android.os.Handler.dispatchMessage(Handler.java:95)
JS: android.os.Looper.loop(Looper.java:154)
JS: android.app.ActivityThread.main(ActivityThread.java:6682)
JS: java.lang.reflect.Method.invoke(Native Method)
JS: com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
JS: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
JS: at Object.getViewClass (file:///data/data/org.nativescript.tabacstopnativescript/files/app/tns_modules/nativescript-angular/element-registry.js:88:15)
JS: at ViewUtil.createView (file:///data/data/org.nativescript.tabacstopnativescript/files/app/tns_modules/nativescript-angular/view-util.js:201:44)
JS: at NativeScriptRenderer.createElement (file:///data/data/org.nativescript.tabacstopnativescript/files/app/tns_modules/nativescript-angular/renderer.js:109:30)
JS: at DebugRenderer2.createElement (file:///data/data/org.nativescript.tabacstopnativescript/files/app/tns_modules/@angular/core/bundles/core.umd.js:15198:49)
JS: at createElement (file:///data/data/org.nativescript.tabacstopnativescript/files/app/tns_modules/@angular/core/bundles/core.umd.js:10571:27)
JS: at createViewNodes (file:///data/data/org.nativescript.tabacstopnativescript/files/app/tns_modules/@angular/core/bundles/core.umd.js:13736:61)
JS: at callViewAction (file:///data/data/org.nativescript.tabacstopnativescript/files/app/tns_modules/@angular/core/bundles/core.umd.js:14209:13)
JS: at execComponentViewsAction (file:///data/data/org.nativescript.tabacstopnativescript/files/app/tns_modules/@angular/core/bundles/core.umd.js:14118:13)
JS: at createViewNodes (file:///data/data/org.nativescript.tabacstopnativescript/files/app/tns_modules/@angular/core/bundles/core.umd.js:13803:5)
JS: at createRootView (file:///data/data/org.nativescript.tabacstopnativescript/files/app/tns_modules/@angular/core/bundles/core.umd.js:13664:5)
JS: at callWithDebugContext (file:///data/data/org.nativescript.tabacstopnativescript/files/app/tns_modules/@angular/core/bundles/core.umd.js:15089:42)
JS: at Object.debugCreateRootView [as createRootView] (file:///data/data/org.nativescript.tabacstopnativescript/files/app/tns_modules/@angular/core/bundles/core.umd.js:14372:12)
JS: at ComponentFactory_.create (file:///data/data/org.nativescript.tabacstopnativescript/files/app/tns_modules/@angular/core/bundles/core.umd.js:11269:46)
JS: at ComponentFactoryBoundToModule.create (file:///data/data/org.nativescript.tabacstopnativescript/files/app/tns_modules/@angular/core/bundles/core.umd.js:4057:29)
JS: at ViewContainerRef_.createComponent (file:///data/data/org.nativescript.tabacstopnativescript/files/app/tns_modules/@angular/core/bundles/co
JS: re.umd.js:11466:62)
from nativescript-svg.
Same here, I used the demo-angular example and got this:
TypeError: Could not load view for: SVGImage.Error: com.tns.NativeScriptException: Failed to find module: "../", relative to: app/tns_modules/nativescript-svg/angular/
from nativescript-svg.
+1
from nativescript-svg.
+1
from nativescript-svg.
The missing JS file where added in release 1.3.5 please update
from nativescript-svg.
Related Issues (20)
- "not a Doxygen trailing comment" when building for iOS HOT 1
- nativescript-svg breaks nativescript-plugin-firebase HOT 1
- Cannot set size
- RuntimeException when loading importing in Vue app
- TypeError: undefined is not a function (near '...definition.fromUrl(value).then...') HOT 2
- Rendering Fails Silently in Nativescript Angular 6 using CLI HOT 1
- NativeScript Vue integration HOT 13
- Aspect Ratio Ignored in iOS HOT 6
- It's not display svg with angular,typescript HOT 5
- Weird PodFile after installing
- Angular7 Android doesn't work HOT 1
- Fatal error came while building after adding the svg plugin.
- Change Path Color of SVG HOT 7
- Support of animated SVG
- AOT: Unexpected value 'NativeScriptSvgModule'. Please add a @NgModule annotation. HOT 10
- IOS: svg not displayed when its container is not visible on screen HOT 1
- Cannot set src as URL
- SVG Images are not displaying
- not working in nativescript 7 HOT 3
- Bintray is shut down and issuing 403 errors from Gradle Build now HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-svg.