Object #<Object> has no method 'existsSync'

652 views
Skip to first unread message

Daniel Weinstein

unread,
Nov 24, 2012, 12:33:23 AM11/24/12
to appc-...@googlegroups.com
I just updated titanium-code-processor and ran it on a titanium mobile project. I get this message:

TypeError: Object #<Object> has no method 'existsSync'
    at Object.<anonymous> (/usr/local/lib/node_modules/titanium-code-processor/bin/codeprocessor:143:9)
    at Module._compile (module.js:432:26)
    at Object..js (module.js:450:10)
    at Module.load (module.js:351:31)
    at Function._load (module.js:310:12)
    at Array.0 (module.js:470:10)
    at EventEmitter._tickCallback (node.js:192:40)

Thanks for this tool. Let me know if I can provide further info.
-Daniel

Bryan Hughes

unread,
Nov 24, 2012, 2:50:58 PM11/24/12
to appc-...@googlegroups.com
Are you running node 0.6? The code processor requires node 0.8. One of the changes between the versions was they moved existsSync from the 'path' module to the 'fs' module

Daniel Weinstein

unread,
Nov 30, 2012, 1:03:34 PM11/30/12
to appc-...@googlegroups.com
Yes, I had been running node 0.6. Upgrading to 0.8 fixed the problem.

Thanks.
Reply all
Reply to author
Forward
0 new messages