Skip to content

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

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

Closed
xirzec opened this issue May 10, 2016 · 1 comment
Closed

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

xirzec opened this issue May 10, 2016 · 1 comment

Comments

@xirzec
Copy link

xirzec commented May 10, 2016

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.

@xirzec
Copy link
Author

xirzec commented Jun 8, 2016

So I took another look into trying to decipher what was going on here.

This turned out to be fixable by simply removing '.d.ts' from the list of resolve.extensions in my webpack.config.js.

Stupid user error, made worse by cryptic error messages. 😭

@xirzec xirzec closed this as completed Jun 8, 2016
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