require.cache undefined, require.resolve() invalid function
I'm creating a bot to post to Discord, and looking for a way to reload required modules without having to stop/start the bot. Based on my reading, I should be able to delete the key from require.cache after resolving the location of the module. however on repl.it require.resolve() always returns as an invalid function and require.cache is always undefined. are these methods disabled? does anyone have another idea as to how to go about reloading the module after file changes?