Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26207] CLI: Titanium CLI errors with winston.Logger is not a constructor

GitHub Issuen/a
TypeBug
PriorityNone
StatusResolved
ResolutionFixed
Resolution Date2018-07-13T14:20:11.000+0000
Affected Version/stitanium 5.0.14
Fix Version/sn/a
ComponentsCLI
Labelsn/a
ReporterEwan Harris
AssigneeEwan Harris
Created2018-07-12T12:42:11.000+0000
Updated2018-07-13T14:20:11.000+0000

Description

Description

When using the titanium cli from master branch, the cli errors out with the below
/Users/eharris/Documents/git/titanium/lib/logger.js:33
	logger = new winston.createLogger({
          ^
TypeError: winston.createLogger is not a constructor
This is because of the upgrade to winston 3.0.0, we can either downgrade to 1.1.2 (the old version), or fix the usage. The former is probably safer

Steps to reproduce

Download the git repo for titanium cli

run npm install

run ./bin/titanium

Actual

Above error

Steps to reproduce

CLI should work

Comments

  1. Ewan Harris 2018-07-12

    PR: https://github.com/appcelerator/titanium/pull/280

JSON Source