dansanderson/picotool

Unable to import modules from sister folders

dxu opened this issue · 0 comments

dxu commented

If i have two folders at the root of my directory, I'm unable to import modules from one folder to the other.


└── root/
    └── folderA/
        ├── module1
        └── module2
    └── folderB/
        ├── module3
        └── module4

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.