felixge/node-require-like — Issue #1: Broken in node 0.5.9+
Author: csausdev
Created: 2011-10-30 21:34:00+00:00
State: open

Require.paths has been removed, and now throws an exception. Here's an example stacktrace from my test suite, which uses sandboxed-module.

module.js:376

throw new Error('require.paths is removed. Use ' +
^

Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead.
at Function. (module.js:376:11)
at requireLike (/Users/garethjones/log4js-node/node_modules/sandboxed-module/node_modules/require-like/lib/require-like.js:26:30)
at SandboxedModule._resolveFilename (/Users/garethjones/log4js-node/node_modules/sandboxed-module/lib/sandboxed_module.js:68:19)
at SandboxedModule._init (/Users/garethjones/log4js-node/node_modules/sandboxed-module/lib/sandboxed_module.js:48:8)
at Function.load (/Users/garethjones/log4js-node/node_modules/sandboxed-module/lib/sandboxed_module.js:25:19)
at Function.require (/Users/garethjones/log4js-node/node_modules/sandboxed-module/lib/sandboxed_module.js:32:15)
at Object. (/Users/garethjones/log4js-node/test/fileAppender.js:154:44)
at run (/Users/garethjones/log4js-node/node_modules/vows/lib/vows/suite.js:128:31)
at EventEmitter. (/Users/garethjones/log4js-node/node_modules/vows/lib/vows/suite.js:201:40)
at EventEmitter.emit (events.js:88:20)