Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6573] Alloy.global not defined

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNot Our Bug
Resolution Date2020-07-21T14:55:41.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Appcelerator CLI
Labelsn/a
Reporterknd_rt@hotmail.com
AssigneeAbir Mukherjee
Created2020-07-14T18:51:03.000+0000
Updated2020-07-21T14:55:41.000+0000

Description

Alloy seems broken, I've reinstalled even in a windows 10 pc and got same error as in new test proyect or any other proyect. [ERROR] TiExceptionHandler: (main) [117,200] ----- Titanium Javascript Runtime Error ----- [ERROR] TiExceptionHandler: (main) [0,200] - In /app.js:1,63 [ERROR] TiExceptionHandler: (main) [0,200] - Message: Uncaught ReferenceError: global is not defined [ERROR] TiExceptionHandler: (main) [0,200] - Source: var Alloy=require('/alloy'),_=Alloy._,Backbone=Alloy.Backbone;global.Alloy=Alloy,global._=_,global.Backbone=Backbone,Alloy.createController('index'); [ERROR] V8Exception: Exception occurred at /app.js:1: Uncaught ReferenceError: global is not defined !image-2020-07-14-13-48-12-784.png|thumbnail!

Attachments

FileDateSize
image-2020-07-14-13-48-12-784.png2020-07-14T18:48:12.000+000021215

Comments

  1. Ewan Harris 2020-07-15

    [~knd_rt@hotmail.com] It's possible that this is down to you using SDK 7.0.0.GA (which is out of support now), TIMOB-24404 aligned all our platforms with compatibility on the global object which was fixed in SDK 7.1.0. I think you'll have to either upgrade your SDK version, or downgrade your CLI version
  2. knd_rt@hotmail.com 2020-07-15

    Thanks for your coments @Ewan Harris, I´ve upgraded SDK version to: 7.1.0.GA But now I face issues with HyperLoop, tried with versions 3.0.3 to 4.0.2. Is the any specific version I must use with this SDK?. This is the error: [Hyperloop] Generating system metabase 2020-07-15T13:21:59.091Z | ERROR | An uncaught exception was thrown! spawn javac ENOENT 2020-07-15T13:21:59.092Z | ERROR | spawn javac ENOENT
  3. knd_rt@hotmail.com 2020-07-15

    Upgraded Android build tools to 28.0.3 Java JDK 1.8 TI SDK 7.1.0.GA Hyperloop 3.1.2 I got error in Dexer now: [ERROR] Failed to run dexer: [ERROR] [ERROR] Exception in thread "main" java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 403 for URL: http://services.gradle.org/distributions/gradle-4.1-all.zip [ERROR] at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:78) [ERROR] at org.gradle.wrapper.Install.createDist(Install.java:47) [ERROR] at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129) [ERROR] at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48) [ERROR] Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://services.gradle.org/distributions/gradle-4.1-all.zip [ERROR] at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900) [ERROR] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) [ERROR] at org.gradle.wrapper.Download.downloadInternal(Download.java:59) [ERROR] at org.gradle.wrapper.Download.download(Download.java:45) [ERROR] at org.gradle.wrapper.Install$1.call(Install.java:60) [ERROR] at org.gradle.wrapper.Install$1.call(Install.java:47) [ERROR] at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65) [ERROR] ... 3 more
  4. knd_rt@hotmail.com 2020-07-15

    Upgraded SDK to 7.5.0.GA and all works again.
  5. Rene Pot 2020-07-21

    You should at least be on 8.2 if you want Apple to accept new updates, recommended is you migrate to 9.x as soon as possible as OS requirements keep getting higher in terms of native SDK built with.

JSON Source