Titanium JIRA Archive
Appcelerator Daemon (DAEMON)

[DAEMON-286] Incompatible Node environment in plugin modules

GitHub Issuen/a
TypeBug
PriorityNone
StatusResolved
ResolutionFixed
Resolution Date2019-10-30T16:34:36.000+0000
Affected Version/sAppc Daemon 3.0.0
Fix Version/sn/a
Componentsappcd-plugin
Labelsn/a
ReporterJan Vennemann
AssigneeJan Vennemann
Created2019-09-30T15:59:37.000+0000
Updated2019-10-30T16:34:36.000+0000

Description

Plugins extend the default Node module definition to override the require behavior and inject a few globals. The provided globals include console, which is not fully compatible with the default Node behavior. - require is missing require.paths and require.main. - The global console object in Node is special in that it is is bound to Node's IO streams, which are [TTY](https://nodejs.org/api/tty.html#tty_tty) based streams with additional properties. Other Node third-party modules that rely on these particular environment details do not work in plugins.

Comments

  1. Jan Vennemann 2019-10-24

    PR: https://github.com/appcelerator/appc-daemon/pull/435 The console issues seem to be resolved with the recent snooplog update.

JSON Source