Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6470] URGENT! Titanium module build fail. The "path" argument must be of type string.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2020-01-13T17:18:25.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsbuild, cli, module, sdk, titanium
ReporterLorenzo Piccinini
AssigneeShak Hossain
Created2020-01-13T13:09:13.000+0000
Updated2020-01-13T17:18:25.000+0000

Description

Errors compiling new module: I have created new module, when I try to build ios or android version from module's folder (appc run -p ios --build-only) I get errors:
An uncaught exception was thrown!
The "path" argument must be of type string. Received type undefined
Operating System
  Name                        = Mac OS X
  Version                     = 10.15.2
  Architecture                = 64bit
  # CPUs                      = 12
  Memory                      = 8589934592

Node.js
  Node.js Version             = 10.18.1
  npm Version                 = 6.13.4

Titanium CLI
  CLI Version                 = 5.2.2

Titanium SDK
  SDK Version                 = 8.2.1.GA
  SDK Path                    = /Users/username/Library/Application Support/Titanium/mobilesdk/osx/8.2.1.GA
  Target Platform             = iphone

Command
/usr/local/bin/node /Users/username/.appcelerator/install/7.1.2/package/node_modules/titanium/lib/titanium.js build --platform ios --log-level info --project-dir /mypath/test2/ios --build-only --config-file /var/folders/qg/ndq6t_0x5xg3v1r5wf8lfcxw0000gn/T/build-1578919034032.json --no-banner --project-dir /mypath/test2/ios
2020-01-13T13:00:54.613Z | TRACE  | TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
at validateString (internal/validators.js:125:11)
at Object.join (path.js:1147:7)
at iOSModuleBuilder.validate (/Users/username/Library/Application Support/Titanium/mobilesdk/osx/8.3.0.GA/node_modules/node-titanium-sdk/lib/builder.js:141:23)
at iOSModuleBuilder.validate (/Users/username/Library/Application Support/Titanium/mobilesdk/osx/8.3.0.GA/iphone/cli/commands/_buildModule.js:42:29)
at Object.exports.validatePlatformOptions (/Users/username/Library/Application Support/Titanium/mobilesdk/osx/8.3.0.GA/node_modules/node-titanium-sdk/lib/titanium.js:672:70)
at /Users/username/Library/Application Support/Titanium/mobilesdk/osx/8.3.0.GA/cli/commands/build.js:261:23
at /Users/username/Library/Application Support/Titanium/mobilesdk/osx/8.3.0.GA/cli/commands/build.js:472:4
at /Users/username/.appcelerator/install/7.1.2/package/node_modules/node-appc/lib/environ.js:278:4
at ChildProcess.exithandler (child_process.js:285:7)
at ChildProcess.emit (events.js:198:13)

Comments

  1. Lorenzo Piccinini 2020-01-13

    Please close it, solved reinstalling titanium sdk.
  2. Ewan Harris 2020-01-13

    Closing per comment

JSON Source