Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeException when loading importing in Vue app #35

Open
robregonm opened this issue Sep 24, 2018 · 0 comments
Open

RuntimeException when loading importing in Vue app #35

robregonm opened this issue Sep 24, 2018 · 0 comments

Comments

@robregonm
Copy link

In my app.js file I have:

import Vue from 'nativescript-vue';
import * as Svg from "nativescript-svg";

but it fails as soon as I add the import with this error:

System.err: java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: 
System.err: Error calling module function 
System.err: Error calling module function 
System.err: Error calling module function 
System.err: TypeError: Cannot read property 'extend' of undefined
System.err: File: "/data/data/myproject/files/internal/ts_helpers.js, line: 63, column: 13
System.err: StackTrace: 
System.err:     Frame: function:'__extends', file:'/data/data/myproject/files/internal/ts_helpers.js', line: 63, column: 14
System.err:     Frame: function:'', file:'file:///data/data/myproject/files/app/tns_modules/nativescript-svg/svg.js', line: 130, column: 5
System.err:     Frame: function:'', file:'file:///data/data/myproject/files/app/tns_modules/nativescript-svg/svg.js', line: 150, column: 2
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/myproject/files/app/tns_modules/nativescript-svg/svg.common.js', line: 6, column: 18
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/myproject/files/app/app.js', line: 34767, column: 18
System.err:     Frame: function:'__webpack_require__', file:'file:///data/data/myproject/files/app/app.js', line: 47, column: 30
System.err:     Frame: function:'', file:'file:///data/data/myproject/files/app/app.js', line: 34612, column: 14
System.err:     Frame: function:'__webpack_require__', file:'file:///data/data/myproject/files/app/app.js', line: 47, column: 30
System.err:     Frame: function:'Object.defineProperty.value', file:'file:///data/data/myproject/files/app/app.js', line: 24592, column: 24
System.err:     Frame: function:'__webpack_require__', file:'file:///data/data/myproject/files/app/app.js', line: 47, column: 30
System.err:     Frame: function:'', file:'file:///data/data/myproject/files/app/app.js', line: 19225, column: 18
System.err:     Frame: function:'__webpack_require__', file:'file:///data/data/myproject/files/app/app.js', line: 47, column: 30
System.err:     Frame: function:'', file:'file:///data/data/myproject/files/app/app.js', line: 102, column: 18
System.err:     Frame: function:'', file:'file:///data/data/myproject/files/app/app.js', line: 105, column: 10
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err: TypeError: Cannot read property 'extend' of undefined
System.err: File: "<unknown>, line: 1, column: 265

Not sure if that's something related to webpack ("webpack": "^3.12.0")
The version of "nativescript-vue": "^2.0.0",

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant