I created a Nativescript-vue project with tns create
I think copied the files from my play.nativescript.org project:
app/
app.js
..
components/
. -- Startup.vue
. ---- folderOne/
. ---- folderOneHome.vue
. ---- folderTwo/
. ---- folderTwoHome.vue
In my app.js I have:
import Vue from "nativescript-vue";
import Startup from "./components/Startup";
new Vue({
template: `
<Frame>
<Startup />
</Frame>`,
components: {
Startup
}
}).$start();
But I run tns preview and get the following on my iPhone NativeScript Preview:
Executing before-preview-sync hook from /Users/xxxx/projects/private/myapp-mobile/hooks/before-preview-sync/nativescript-dev-webpack.js
Start syncing changes for platform ios.
Copying template files...
Platform ios successfully added. v5.0.0
Executing before-shouldPrepare hook from /Users/xxxx/projects/private/myapp-mobile/hooks/before-shouldPrepare/nativescript-dev-webpack.js
Preparing project...
Executing before-prepareJSApp hook from /Users/xxxx/projects/private/myapp-mobile/hooks/before-prepareJSApp/nativescript-dev-webpack.js
Project successfully prepared (ios)
Executing after-prepare hook from /Users/xxxx/projects/private/myapp-mobile/hooks/after-prepare/nativescript-dev-webpack.js
Successfully synced changes for platform ios.
LOG from device xxxx iPhone 8+: 2018-11-11 17:03:53.364 nsplaydev[4353:1286798] ***** Fatal JavaScript exception - application has been terminated. *****
2018-11-11 17:03:53.364 nsplaydev[4353:1286798] Native stack trace:
1 0x100ffff84 NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool, bool)
2 0x1010386bc -[TNSRuntime executeModule:referredBy:]
3 0x100d18154 -[UIApplication(PlayLiveSync) swizzled_executeModule:]
4 0x1007b34f4
5 0x1d6ac2bb4 <redacted>
2018-11-11 17:03:53.365 nsplaydev[4353:1286798] JavaScript stack trace:
2018-11-11 17:03:53.365 nsplaydev[4353:1286798] 1 resolveSync#[native code]
2 #[native code]
3 promiseReactionJob#[native code]
2018-11-11 17:03:53.365 nsplaydev[4353:1286798] JavaScript error:
[native code]: JS ERROR Error: Could not find module './components/Startup'. Computed path '/var/mobile/Containers/Data/Application/15C2D576-AEE0-40C4-A8FF-430289A66882/Documents/Playground/LiveSync/app/components/Startup'.
2018-11-11 17:03:53.366 nsplaydev[4353:1286798] PlayLiveSync: Uncaught Exception
2018-11-11 17:03:53.366 nsplaydev[4353:1286798] *** JavaScript call stack:
(
)
2018-11-11 17:03:53.366 nsplaydev[4353:1286798] *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Error: Could not find module './components/Startup'. Computed path '/var/mobile/Containers/Data/Application/15C2D576-AEE0-40C4-A8FF-430289A66882/Documents/Playground/LiveSync/app/components/Startup'.
at
1 resolveSync#[native code]
2 #[native code]
3 promiseReactionJob#[native code]
When I run this online, I get my initial screen (Startup.vue) but not when I run it locally. Do I need to write Sidekick differently than Play for something like this?
If it matters, I upgraded to NativeScript 5.0.
Also, I notice that when using Visual Studio Code, the autocomplete also doesn't find my ./components/Startup.vue but it does find all the subdirectories under ./components.
Update:
I created a new project via: vue init nativescript-vue/vue-cli-template newTest
then I cd into that directory and did tns preview and get the same error type:
JS ERROR Error: Could not find module './components/App'.
So this appears NOT to be related to any project but rather with how this is being assembled?
Related
After upgrading Movabletype from version 6 to version 7 successfully. The rebuild all websites job has also finished with no error.
When I visit any page, it stucks with this fatal error. For about pages in the admin path (/mt.cgi), they can be accessed normally.
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template
"eval:smarty->_cache['_tag_stack']);{{/php}}"
unknown tag 'mtblogname' <-- thrown in
/var/www/html/mt7/php/extlib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php
on line 11
I try to create start RadSideDrawer example https://play.nativescript.org/?template=play-vue&id=AZnAQ0
It works well with playground, but when I build it with
tns run android --bundle
I get an error
An uncaught Exception occurred on "main" thread.
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.nativescript.application/com.tns.NativeScriptActivity}: com.tns.NativeScriptException:
Calling js method onCreate failed
TypeError: Could not load view for: nativeradsidedrawer. TypeError: Cannot read property 'extend' of undefined
File: "file:///data/data/org.nativescript.application/files/app/vendor.js, line: 59885, column: 6
StackTrace:
Frame: function:'getViewClass', file:'file:///data/data/org.nativescript.application/files/app/vendor.js', line: 63313, column: 11
What did I do wrong?
First we need to build the app using below command
tns build android --bundle
Once build is successful we have to run below command
tns run android --bundle
Need to update tns
tns update next
I have created a simple Xamarin.Forms(Portable) project and included UI Test project in it. But when i am trying to run the test in physical device it giving me below mentioned exception.
Test Name: AppLaunches
Test Outcome: Failed
Result Message:
SetUp : System.Net.Http.HttpRequestException : An error occurred while sending the request.
----> System.Net.WebException : The underlying connection was closed: The connection was closed unexpectedly.
Result StandardOutput: Full log file: C:\Users\Admin\AppData\Local\Temp\uitest\log-2016-10-22_11-04-53-698.txt
Skipping IDE integration as important properties are configured. To force IDE integration, add .PreferIdeSettings() to ConfigureApp.
Android test running Xamarin.UITest version: 2.0.0.1534
Initializing Android app on device ZX1D63GCCL with installed app: co.veloxcore.UITestSample2
Signing apk with Xamarin keystore.
Skipping installation: Already installed.
Here is the link to my project: XamarinUITest
Log File : Error Log
Are you using using ModernHttpClient?
Also you can use Polly if you want to handle network exceptions.
For example:
conferences = await Policy
.Handle<WebException>()
.WaitAndRetry
(
retryCount:5,
sleepDurationProvider: retryAttempt => TimeSpan.FromSeconds(Math.Pow(2, retryAttempt))
)
.ExecuteAsync(async () => await getConferencesTask);
Also AsyncErrorHandler is great tool to handle async exceptions
Using a Pro account, I created a new app (using Studio), when tried to enable Hyperloop, the popup of progress just disappear without any message and still hyperloop disabled.
After checking the Studio logs, I found an error and a suggestion of using the CLI for that.
!ENTRY com.aptana.core 1 0 2016-07-18 20:00:53.309
!MESSAGE (Build 4.7.0.201607130543) [INFO] com.aptana.core/debug/shell/output Process Output:
Failed to enable Hyperloop: Error: TypeError: undefined is not a function
Unable to register the new app with Appcelerator Platform either due to limited connectivity or other unexpected problem. Please retry later using the command 'appc new --import --project-dir /path/to/project' { [Error: ArrowDB apps already exist for this app_guid]
success: false,
description: 'ArrowDB apps already exist for this app_guid',
code: 400,
internalCode: undefined }
When I tried the appc new --import --project-dir ., I got the same message, even removing the app from the platform I can't get hyperloop to work, the other ArrowDB don't seem to have an error (I don't use that personally).
Anything missing?
appc -v = 5.4.0-31
appc ti sdk = 5.4.0.v20160712013704
I'm getting this error on my latest (and first) AOSPA build for lt01wifi.
It happens when I try to open Browser but it crashes before it opens.
Error Log:
I/LibraryLoader( 5999): Loading: webviewchromium
E/ActivityThread( 5999): Failed to find provider info for com.google.settings
E/dalvikvm( 5999): dlopen("/system/lib/libwebviewchromium.so") failed: dlopen failed: empty/missing DT_HASH in "libwebviewchromium.so" (built with --hash-style=gnu?)
E/WebViewFactory( 5999): error instantiating provider
E/WebViewFactory( 5999): java.lang.RuntimeException: Cannot load WebView
Probably it is the .so file itself that is the problem.
It was built with --hash-style=gnu, which is not supported in Android platform.
You should build your .so file again.
And this link could be helpful.