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

Issues with Yarn2 PNP / Webpack V5 / rebuild loop #2820

Closed
1 task
Hecatron opened this issue Nov 7, 2020 · 5 comments
Closed
1 task

Issues with Yarn2 PNP / Webpack V5 / rebuild loop #2820

Hecatron opened this issue Nov 7, 2020 · 5 comments

Comments

@Hecatron
Copy link

Hecatron commented Nov 7, 2020

  • Operating System: Windows 10
  • Node Version: v14.13.1
  • NPM Version: 6.14.4
  • webpack Version: 5.4.0
  • webpack-dev-server Version: 3.11.0
  • Browser: Firefox (although not used here)
  • [ X] This is a bug
  • This is a modification request

Hi,
I've noticed that when using Yarn V2 (PNP) and Webpack V5 in combination
causes webpack-dev-server to go into a rebuild loop.

  • yarn v2 pnp / webpack v4 (with pnp plugin) - works fine
  • yarn v2 pnp / webpack v5 - goes into a loop
  • yarn v1 no pnp / webpack v5 - works fine

This might be related to #2807
I'm not sure, should be interesting to see what happens when this is updated

Note I've been using the command "webpack serve --mode development --env development"
instead of "webpack-dev-server" which fixes the issue with the latest webpack-cli

i 「wdm」: Compiling...
i 「wdm」: assets by status 5.79 MiB [cached] 1 asset
cached modules 3.78 MiB (javascript) 24.8 KiB (runtime) [cached] 416 modules
webpack 5.4.0 compiled successfully in 191 ms
i 「wdm」: Compiled successfully.
No issues found.
i 「wdm」: Compiling...
i 「wdm」: assets by status 5.79 MiB [cached] 1 asset
cached modules 3.78 MiB (javascript) 24.8 KiB (runtime) [cached] 416 modules
webpack 5.4.0 compiled successfully in 172 ms
i 「wdm」: Compiled successfully.
No issues found.
i 「wdm」: Compiling...
i 「wdm」: assets by status 5.79 MiB [cached] 1 asset
cached modules 3.78 MiB (javascript) 24.8 KiB (runtime) [cached] 416 modules
webpack 5.4.0 compiled successfully in 173 ms
i 「wdm」: Compiled successfully.
@alexander-akait
Copy link
Member

Please provide reproducible test repo

@Hecatron
Copy link
Author

Hecatron commented Nov 9, 2020

@alexander-akait
Copy link
Member

Sorry for delay, I will look at this tomorrow

@alexander-akait
Copy link
Member

No problems with webpack or webpack-dev-server, just comment ForkTsCheckerWebpackPlugin and no problems, spent 1 hour on debug 😞 , please try latest version of https://github.com/TypeStrong/fork-ts-checker-webpack-plugin, locally fixed the problem, of you still ahve the problem , please open an issue in fork-ts-checker-webpack-plugin repo, thanks

@Hecatron
Copy link
Author

Hecatron commented Dec 5, 2020

Cool thanks for looking into this
I can confirm as soon as I upgraded from 6.0.0 to 6.0.5 for fork-ts-checker-webpack-plugin it fixed it
sorry I would have raised the issue there if I'd known but figuring that one out was beyond my abilities

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

2 participants