Titanium JIRA Archive
Appcelerator Community (AC)

[AC-712] Error Compiling app.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2016-03-11T15:49:16.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterJWay21
AssigneeAminul Islam
Created2016-03-03T21:10:14.000+0000
Updated2016-03-17T12:28:58.000+0000

Description

/usr/local/lib/node_modules/appcelerator/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/got/index.js:3 const EventEmitter = require('events').EventEmitter; ^^^^^ SyntaxError: Use of const in strict mode. at exports.runInThisContext (vm.js:73:16) at Module._compile (module.js:443:25) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Module.require (module.js:365:17) at require (module.js:384:17) at Object. (/usr/local/lib/node_modules/appcelerator/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/index.js:2:11) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10)

Attachments

FileDateSize
Screen Shot 2016-03-03 at 21.09.26.png2016-03-03T21:10:08.000+0000135875

Comments

  1. Mostafizur Rahman 2016-03-06

    Hello, Thanks for sharing with us. It would be better if you can share a sample test case to reproduce the issue. Please provide a full sample code and steps to follow for regenerating the issue. Thanks.
  2. Norbert Schuler 2016-03-17

    I had the same problem, because my node version was just very ancient (v.0.10.13). After installing the latest LTS version v4.4.0 from https://nodejs.org this error vanished.

JSON Source