Git Product home page Git Product logo

Comments (10)

amizz avatar amizz commented on August 17, 2024 2

I'm having the same problem. Any solution?

from nativescript-svg.

dvdbrk avatar dvdbrk commented on August 17, 2024

For me it fails silently

from nativescript-svg.

tontojones avatar tontojones commented on August 17, 2024

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.

noomieware avatar noomieware commented on August 17, 2024

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.

-1505459970995.txt

from nativescript-svg.

vultix avatar vultix commented on August 17, 2024

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.

fthuin avatar fthuin commented on August 17, 2024

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.

ramtinsoltani avatar ramtinsoltani commented on August 17, 2024

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.

1andee avatar 1andee commented on August 17, 2024

+1

from nativescript-svg.

marklanhamhc avatar marklanhamhc commented on August 17, 2024

+1

from nativescript-svg.

victorsosa avatar victorsosa commented on August 17, 2024

The missing JS file where added in release 1.3.5 please update

from nativescript-svg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.