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

Unknown error when using moduleResulotion: node #119

Closed
adaliszk opened this issue Nov 29, 2017 · 0 comments
Closed

Unknown error when using moduleResulotion: node #119

adaliszk opened this issue Nov 29, 2017 · 0 comments
Assignees
Labels

Comments

@adaliszk
Copy link

So when I used "moduleResolution": "node" in my tsconfig.json the whole twc just braked in the build with this output:

/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:3495
            throw e;
            ^

Error: Debug Failure. 
    at Object.resolveModuleName (/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:26116:30)
    at loader_1 (/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:69295:78)
    at loadWithLocalCache (/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:69227:42)
    at resolveModuleNamesWorker (/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:69296:88)
    at resolveModuleNamesReusingOldState (/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:69412:24)
    at processImportedModules (/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:70364:35)
    at findSourceFile (/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:70274:17)
    at args (/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:70200:85)
    at getSourceFileFromReferenceWorker (/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:70173:34)
    at processSourceFile (/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:70200:13)

Solution was just remove the moduleResolution option, but a better explanation would be appreciated :)

@adaliszk adaliszk changed the title Unknow error when using moduleResulotion: node Unknown error when using moduleResulotion: node Nov 29, 2017
@Buslowicz Buslowicz self-assigned this Nov 29, 2017
@Buslowicz Buslowicz added the bug label Dec 3, 2017
Buslowicz pushed a commit that referenced this issue Dec 8, 2017
#119: Unknown error when using moduleResulotion: node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants