webpack-contrib / eslint-webpack-plugin

A ESLint plugin for webpack
MIT License
257 stars 49 forks source link

Angular 15+16 compile gets stuck at "70% sealing finish module graph ESLintWebpackPlugin_1" #223

Closed Usama129 closed 4 months ago

Usama129 commented 1 year ago

I'm using eslint-webpack-plugin 4.0.1 with Angular 16.0.2, and webpack-dev-server 4.15.0 and node v18.16.0. My compile process (with webpack-dev-server) succeeds initially and goes to 100%. When I change/edit a .ts or .scss file, the re-compile gets stuck at _"70% sealing finish module graph ESLintWebpackPlugin_1"_.

plugin webpack config as follows:

new ESLintPlugin({ extensions: ["ts"], failOnWarning: false, failOnError: true, emitError: true, cache: true, cacheStrategy: "content", lintDirtyModulesOnly: true, fix: true })

Also encountered on Angular 15 with eslint-webpack-plugin 3.2.0 and webpack-dev-server 4.11.1 with node 16.x

Things we've tried: cache properties - nope, not related to cache fix:true disabled - not related changing order of plugins - nope update to node 20 - nope

StraightOuttaCrompton commented 9 months ago

I'm having the same issue. Initially succeeds but fails when a file is changed.

Plugin config can be found at https://github.com/ProtonMail/WebClients/blob/main/packages/pack/webpack/plugins.js#L42

Tried similar fixes as above, and the only fix is to not include the plugin at all.

None of my colleagues are affected by this, but I am running the older macbook pro with intel chip.

Any advice would be appreciated 🙏

StraightOuttaCrompton commented 9 months ago

Seems to be causing an issue with storybook too https://github.com/storybookjs/storybook/issues/18051

dikaso commented 5 months ago

Set threads to true, it helps.

ricardogobbosouza commented 4 months ago

I can't reproduce. If the problem persists, provide a repository

dikaso commented 4 months ago

Set threads to true, it helps.

Please note that this can hurt performance (or even cause OOM). A better choice is to use number e.g. set threads: 2 and lintDirtyModulesOnly: true.