We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the following app structure, it does not appear possible to have one app-level module require another:
| app/ | -- node_modules/ | ---- module-one/ | ------ index.ts | ---- module-two/ | ------ index.ts
Trying to import module-one from inside module-two..
module-one
module-two
import ModuleOne = require('module-one');
.. results in the following error:
error TS2307: Cannot find external module 'module-one'.
This works if module-two is at the app root level. Is there any way around this?
The text was updated successfully, but these errors were encountered:
The correct syntax for that is import ModuleOne = require('../module-one');
import ModuleOne = require('../module-one');
Sorry, something went wrong.
No branches or pull requests
Given the following app structure, it does not appear possible to have one app-level module require another:
Trying to import
module-one
from insidemodule-two
.... results in the following error:
This works if
module-two
is at the app root level. Is there any way around this?The text was updated successfully, but these errors were encountered: