-
-
Notifications
You must be signed in to change notification settings - Fork 433
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
Watcher gets an instance of IgnoringWatchFileSystem and errors #441
Comments
I ran into the exact same issue. |
Could a minimal repro be supplied please? We can use this as a basis for a comparison test which is necessary for this PR to remedy the issue: #444 |
I'm currently setting up the comparison test. Still wrangling with the webpack output though … |
Believe me I know that feeling... Do take a look at the existing tests - due to webpack 2 they've all changed in some way. Oh and ignore test output for pre TypeScript 2.1. it's for historic Interest only |
Details of changes here: https://github.com/TypeStrong/ts-loader/pull/445/files |
* Add support for IgnoringWatchFileSystem-instance in watcher * Add comparison test concerning #441
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing as stale. Please reopen if you'd like to work on this further. |
In my Webpack-setup I'm ignoring some
.d.ts
-files by adding Webpack'sWatchIgnorePlugin
-plugin. These ignored files lead to thewatchFileSystem
of the webpack-compiler not being an instance ofNodeWatchFileSystem
, but ofIgnoringWatchFileSystem
.This again makes
src/watch-run.ts
throw an error, because it expects thewatcher
-property to be onwatching.compiler.watchFileSystem
. But instances of theIgnoringWatchFileSystem
have their instance ofNodeWatchFileSystem
on thewfs
-property.This can easily be fixed by doing:
However I'm not sure if this is actually a problem of the
ts-loader
. Maybe.ts
-files handled by theWatchIgnorePlugin
-plugin must not run through thets-loader
at all?!?Can someone with more knowledge of the internals of Webpack provide an oppinion? This would be great! :-)
The text was updated successfully, but these errors were encountered: