Skip to content
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

Enabling the threads option makes it so that the plugin doesn't emit errors unless in watch mode after the file was changed. #146

Open
HristoKolev opened this issue Mar 29, 2022 · 5 comments

Comments

@HristoKolev
Copy link

Bug report

Given these options:

{
      extensions: ['js', 'jsx', 'ts', 'tsx'],
      failOnWarning: true,
      threads: true,
}

when I run webpack the plugin doesn't emit errors.

When I run webpack in watch mode the plugin doesn't emit errors initially but if I change the file containing the error the plugin emits the error.

If I change the threads option to false it works as expected and emits errors when webpack is run.

Please paste the results of npx webpack-cli info here, and mention other relevant information


  System:
    OS: Windows 10 10.0.19044
    CPU: (8) x64 Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
    Memory: 16.87 GB / 31.94 GB
  Binaries:
    Node: 16.14.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.17 - C:\Program Files\nodejs\yarn.CMD
    npm: 8.5.5 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 99.0.4844.82
    Edge: Spartan (44.19041.1266.0), Chromium (99.0.1150.55)
  Packages:
    babel-loader: ^8 => 8.2.4
    browser-sync-webpack-plugin: ^2 => 2.3.0
    clean-webpack-plugin: ^4 => 4.0.0
    css-loader: ^6 => 6.7.1
    eslint-webpack-plugin: ^3 => 3.1.1
    fork-ts-checker-webpack-plugin: ^7 => 7.2.1
    html-loader: ^3 => 3.1.0
    html-webpack-plugin: ^5 => 5.5.0
    postcss-loader: ^6 => 6.2.1
    resolve-url-loader: ^5 => 5.0.0
    sass-loader: ^12 => 12.6.0
    style-loader: ^3 => 3.3.1
    ts-loader: ^9 => 9.2.8
    tsconfig-paths-webpack-plugin: ^3 => 3.5.2
    url-loader: ^4 => 4.1.1
    webpack: ^5 => 5.70.0
    webpack-bundle-analyzer: ^4 => 4.5.0
    webpack-cli: ^4 => 4.9.2

@JUST-Limbo
Copy link

Encountered same problem the other day,it looks like a bug.
It was mentioned by other developer's comment in #137.

@kirill-martynov
Copy link

I've got same problem, when threads: true, there is no errors and warnings

@xiayongtian
Copy link

对的,一样,当线程:true,没有错误和警告

@ajiho
Copy link

ajiho commented Aug 18, 2023

Until 2023, this issue still exists

@avs-doom
Copy link

avs-doom commented Nov 9, 2023

Yes, still relevant and works similar to the "lintDirtyModulesOnly" setting

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

6 participants