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

Build hangs with yarn pnp #719

Closed
DiFuks opened this issue Mar 10, 2022 · 2 comments
Closed

Build hangs with yarn pnp #719

DiFuks opened this issue Mar 10, 2022 · 2 comments
Labels

Comments

@DiFuks
Copy link

DiFuks commented Mar 10, 2022

Current behavior

When I run a build with yarn pnp (and pnpEnableEsmLoader: true) the process hangs

Expected behavior

The process does not hang and completes successfully

Steps to reproduce the issue

  1. Install yarn 3 with pnp
  2. Install webpack 5
  3. Install fork-ts-checker
  4. Run webpack build

Issue reproduction repository

https://github.com/DiFuks/yarn-pnp-fork-ts-checker-stuck

fork-ts 6
pnpEnableEsmLoader: true in .yarnrc.yml
webpack --mode=production work
webpack --mode=development does not work
webpack serve --mode=development work

https://github.com/DiFuks/yarn-pnp-fork-ts-checker-stuck/tree/fork-ts-checker-7

fork-ts 7
pnpEnableEsmLoader: true in .yarnrc.yml
webpack --mode=production does not work
webpack --mode=development does not work
webpack serve --mode=development does not work

https://github.com/DiFuks/yarn-pnp-fork-ts-checker-stuck/tree/pnp-enable-esm-loader-false

fork-ts 7
pnpEnableEsmLoader: false in .yarnrc.yml
webpack --mode=production work
webpack --mode=development work
webpack serve --mode=development work

Environment

  • fork-ts-checker-webpack-plugin: ^6.5.0
  • typescript: ^4.6.2
  • eslint: -
  • webpack: ^5.70.0
  • os: MacOS 12.2
@DiFuks DiFuks added the bug label Mar 10, 2022
@ncrohn
Copy link

ncrohn commented Mar 10, 2022

I am also running into this issue. I tried the steps outlined and confirmed setting pnpEnableEsmLoader to false lets the plugin run properly.

@DiFuks
Copy link
Author

DiFuks commented Mar 14, 2022

Here is the information about the problem. I close this issue. yarnpkg/berry#4157 (comment)

@DiFuks DiFuks closed this as completed Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants