Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import modules from sister folders #51

Open
dxu opened this issue Jul 30, 2018 · 0 comments
Open

Unable to import modules from sister folders #51

dxu opened this issue Jul 30, 2018 · 0 comments

Comments

@dxu
Copy link

dxu commented Jul 30, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant