-
-
Notifications
You must be signed in to change notification settings - Fork 121
errors not shown after starting webpack dev server after initial start #267
Comments
just to update, I also found that if I add
this issue doesn't occur. however during development, i'm wanting it to still compile, and fix as I go. we have a pretty large project, so disabling cache loader doesn't seem to be an option for. |
any enabling of cacheing in the loader causes this issue as well. tried cache: true, and failOnWarning: true, but the issue persists. |
Exactly the same situation here. If I clear the |
We ended up removing cache loader and turning on cacheing for eslint loader not as fast but ok for now |
The same. |
I found that if you make sure to enable root: true and what not from eslint to make sure it doesn't recursively check for eslint, that gave us a perf boost for sure. |
@kelly-tock Please provide a repository with the issue. |
@ricardogobbosouza @kelly-tock Repro repository provided here: https://github.com/barberdt/loader-issue Repro steps: Yarn version: 1.17.3 $ git clone [email protected]:barberdt/loader-issue.git
$ cd loader-issue
$ yarn install
$ yarn run test
ERROR in ./index.js
Module Error (from ./node_modules/eslint-loader/dist/cjs.js):
/Users/davis/github/loader-issue/index.js
1:13 error 'foo' is not defined no-undef
✖ 1 problem (1 error, 0 warnings)
ℹ 「wdm」: Failed to compile.
Restarting the server from this point forward should continue to show a false successful build. Without having dug into the issue itself, I'm not 100% sure which repo this issue belongs to between |
Thanks for providing this! |
Hi @barberdt, @kelly-tock I do not recommend using Soon this loader will be deprecated in favor of this plugin eslint-webpack-plugin |
I am using typescript so recently switched raking over to be handled by fork ts checker plugin |
@ricardogobbosouza Which loader exactly will be deprecated? Caching or ESLint? When will that deprecation happen, and is there a guide present for moving from one to the new plugin? |
Hi @onebree
|
Please use |
node 11.12.0
webpack 4.8.2
webpack dev server 3.1.1
eslint-loader 2.1.2
after doing a fresh install, and starting webpack dev server, the loader will properly display lint warnings/errors. I can go through and edit files to fix the issues, and when dev server refreshes, it shows the remaining issues.
if I stop the dev server, then just start it, no warnings/errors are displayed, even though I know there still are some.
if I remove cache loader it displays all the time and this issue does not occur.
is there a way to display the issues all the time while using cache loader?
The text was updated successfully, but these errors were encountered: