Skip to content

ts-loader breaking with "moduleResolution": "node" #192

Closed
@xirzec

Description

@xirzec

I have a strange situation where I'm getting a compile error caused by an index.d.ts in a dependency of a dependency. (In my case it's redux depending on symbol-observable.) I've tried changing moduleResolution back to classic, but the error still persists:

ERROR in ./~/symbol-observable/index.d.ts
Module build failed: Error: Typescript emitted no output for c:\src\testapp\node_modules\symbol-observable\index.d.ts
    at Object.loader (c:\src\testapp\node_modules\ts-loader\index.js:456:15)
 @ ./~/redux/lib/createStore.js 11:24-52

To prove that I'm hopefully not crazy, you can check out an example repo here:

https://github.com/xirzec/broken-tsloader

Just do a npm run build to see the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions