Description
When building for windows the following error is thrown, this is because of the changes made in TIMOB-25650. We can remove this code though as it is a backwards compat thing for hyperloop 2.x
Error: Cannot find module 'babylon'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\ProgramData\Titanium\mobilesdk\win32\8.0.0.v20181114074027\windows\cli\commands\_build\copy.js:10:12)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
---------------------------------------------
at C:\Jenkins\workspace\anium_mobile_windows_master-VEBTVBGZKPOIHZSZQD5XUBDGPM6Q4OEDUIMQP6TH2EZSWDMRL22Q\titanium-mobile-mocha-suite\node_modules\node-appc\node_modules\async\dist\async.js:2135:9
at apply (C:\Jenkins\workspace\anium_mobile_windows_master-VEBTVBGZKPOIHZSZQD5XUBDGPM6Q4OEDUIMQP6TH2EZSWDMRL22Q\titanium-mobile-mocha-suite\node_modules\node-appc\node_modules\async\dist\async.js:21:25)
at C:\Jenkins\workspace\anium_mobile_windows_master-VEBTVBGZKPOIHZSZQD5XUBDGPM6Q4OEDUIMQP6TH2EZSWDMRL22Q\titanium-mobile-mocha-suite\node_modules\node-appc\node_modules\async\dist\async.js:56:12
at _insert (C:\Jenkins\workspace\anium_mobile_windows_master-VEBTVBGZKPOIHZSZQD5XUBDGPM6Q4OEDUIMQP6TH2EZSWDMRL22Q\titanium-mobile-mocha-suite\node_modules\node-appc\node_modules\async\dist\async.js:2248:9)
at Object.push (C:\Jenkins\workspace\anium_mobile_windows_master-VEBTVBGZKPOIHZSZQD5XUBDGPM6Q4OEDUIMQP6TH2EZSWDMRL22Q\titanium-mobile-mocha-suite\node_modules\node-appc\node_modules\async\dist\async.js:2294:13)
at Object.findExecutable (C:\Jenkins\workspace\anium_mobile_windows_master-VEBTVBGZKPOIHZSZQD5XUBDGPM6Q4OEDUIMQP6TH2EZSWDMRL22Q\titanium-mobile-mocha-suite\node_modules\node-appc\lib\subprocess.js:113:8)
at resolveNode (C:\Jenkins\workspace\anium_mobile_windows_master-VEBTVBGZKPOIHZSZQD5XUBDGPM6Q4OEDUIMQP6TH2EZSWDMRL22Q\titanium-mobile-mocha-suite\node_modules\titanium\lib\titanium.js:97:34)
at C:\Jenkins\workspace\anium_mobile_windows_master-VEBTVBGZKPOIHZSZQD5XUBDGPM6Q4OEDUIMQP6TH2EZSWDMRL22Q\titanium-mobile-mocha-suite\node_modules\titanium\lib\titanium.js:74:5
at Object.<anonymous> (C:\Jenkins\workspace\anium_mobile_windows_master-VEBTVBGZKPOIHZSZQD5XUBDGPM6Q4OEDUIMQP6TH2EZSWDMRL22Q\titanium-mobile-mocha-suite\node_modules\titanium\lib\titanium.js:80:2)
Steps to reproduce
1. Build for Windows
Actual
Above error thrown
Expected
No error thrown
https://github.com/appcelerator/titanium_mobile_windows/pull/1322
Merged.
Just posted new hyperloop module so you can test this fix. [^hyperloop-3.2.0-windows.zip]
Verified the fix with hyperloop-3.2.0 and sdk 8.0.0.v20181120090229. able to build app successfully on windows device