Closed facekapow closed 8 years ago
@facekapow yep, this is a bug in the module loader. I'll fix soon. Thank you!
@facekapow require issue is fixed, you may still get errors though because most Node.js builtin modules aren't supported yet https://github.com/runtimejs/runtime/pull/91
I know, this isn't that though. I was trying to load my runtime-shell module which has no external dependencies, it just failed when requiring ping.js from lib. Thanks for the fix!
I tried out the new version of runtime with runtime-shell and it just crapped out (runtime-shell, I mean) under the previous version, it worked fine. The exact error is:
_But_, when I changed the
'./lib/ping.js'
to__dirname + '/lib/ping.js'
, it worked perfectly. I ran through the code andconsole.log
ed every part that seemed it had something to with the path resolving and logs what it should until it gets to theresolvePath
function, at which pointresolveFrom
becomes empty but before the function was called it was what it should be ('/node_modules/runtime-shell'). Any ideas why this is happening?