Closed tsonevn closed 5 years ago
Hi @alexisconsuegra,
Try upgrading the project to the latest available version, while following the instruction here. Then clear up the workspace by selecting File->Clear Cloud Workspace
in SideKick and try rebuilding the project, while using cloud builds.
Thanks @tsonevn , I confirmed I have the latest CLI version (5.4.2) I tried then tns update and chose "Try Cloud Operation" and got the following message. In order to test your application use the $ tns login command to log in with your account and then $ tns cloud build command to build your app in the cloud. Does it mean it did not complete the update?
It is working now. Thanks
@alexisconsuegra commented on Sat Jun 29 2019
Environment
CLI:
CLI Version: 1.17.0-v.2019.5.31.1 (latest) NativeScript CLI version: 5.4.2 CLI extension nativescript-cloud version: 1.17.6 CLI extension nativescript-starter-kits version: 0.3.5
Cross-platform modules:
Android Runtime: 5.2.1
iOS Runtime: 5.2.0
Plugin(s): "nativescript-background-http": "^3.4.0", "nativescript-camera": "^4.4.0", "nativescript-drop-down": "^5.0.0", "nativescript-geolocation": "^5.1.0", "nativescript-google-maps-sdk": "^2.7.0", "nativescript-imagepicker": "^6.1.2", "nativescript-masked-text-field": "^4.0.1", "nativescript-theme-core": "~1.0.4", "nativescript-ui-listview": "^6.3.2", "tns-core-modules": "~5.2.0"
Describe the bug I started getting a runtime error Could not find module 'tns-core-modules/application' after a new build. It was working fine before the build.
tns_modules folder not livesynced. Using tns_modules from the already deployed bundle... Fatal JavaScript exception - application has been terminated. Native stack trace: 1 0x101ce3370 NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState, JSC::Exception, bool) 2 0x101d1fc20 -[TNSRuntime executeModule:referredBy:] 3 0x100bd402c 4 0x1b97328e0
JavaScript stack trace:
1 require@file:///app/app.js:6:28
2 anonymous@file:///app/app.js:6:28
3 evaluate@[native code]
4 moduleEvaluation@[native code]
5 promiseReactionJob@[native code]
JavaScript error:
file:///app/app.js:6:28: JS ERROR Error: Could not find module 'tns-core-modules/application'. Computed path '/var/mobile/Containers/Data/Application/83A79C30-7F62-4499-A2B9-374478FEF58B/Library/Application Support/LiveSync/app/tns_modules/tns-core-modules/application'.
JavaScript call stack:
(
)
Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Error: Could not find module 'tns-core-modules/application'. Computed path '/var/mobile/Containers/Data/Application/83A79C30-7F62-4499-A2B9-374478FEF58B/Library/Application Support/LiveSync/app/tns_modules/tns-core-modules/application'.
at
1 require@file:///app/app.js:6:28
2 anonymous@file:///app/app.js:6:28
3 evaluate@[native code]
4 moduleEvaluation@[native code]
5 promiseReactionJob@[native code]
', reason: '(null)'
*** First throw call stack:
(0x1b9ce127c 0x1b8ebb9f8 0x101ce37b4 0x101d1fc20 0x100bd402c 0x1b97328e0)
The app.js code
Expected behavior Application to start as before