When I require module3 in module1 by calling require(folderB/module3), I get an error.
I'm able to fix this error by commenting out the "require() relative filenames" check, and instead calling require('../folderB/module3'), but this is explicitly disallowed as documented.
If i have two folders at the root of my directory, I'm unable to import modules from one folder to the other.
When I require module3 in module1 by calling
require(folderB/module3)
, I get an error.I'm able to fix this error by commenting out the "
require()
relative filenames" check, and instead callingrequire('../folderB/module3')
, but this is explicitly disallowed as documented.