-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
Failing with webpack --watch on file change #155
Comments
Are you using webpack2? From the error it sounds like it might be a webpack api change. ts-loader isn't really tracking webpack2 (yet). |
Hey, |
Not sure then. Tests are passing with webpack 1.12.13 and ts 1.8: https://travis-ci.org/TypeStrong/ts-loader/jobs/109111991 I'll have to try your exact setup later. |
I was using Thanks for your help. [Note to self: Put in complete configs when creating issues; not snippets] |
Uses watching.compiler.fileTimestamps which is set directly in the compiler. See https://github.com/webpack/webpack/blob/master/lib/Compiler.js#L105. Fixes the TypeStrong#155 when using the webpack.OldNodeWatchFileSystem.
Uses `watching.compiler.fileTimestamps` which is set directly in the compiler. See https://github.com/webpack/webpack/blob/master/lib/Compiler.js#L105. Fixes the #155 when using the webpack.OldNodeWatchFileSystem.
Here's my webpack.config:
And this is tsconfig.json:
Typescript compiles the app first time just fine, but when I change something in the code, it fails and crashes with this error:
I am trying out typescript and ts-loader for first time, so I am not sure if this is something I am doing wrong or if this is a bug. I've tried googling, read through many boilerplates and such configs, but I can't figure out if it is me doing something wrong. Nothing I have done so far could solve this.
The text was updated successfully, but these errors were encountered: