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

After migrating to Yarn 2, Webpack wants to install a CLI #2302

Closed
o-alquimista opened this issue Mar 2, 2020 · 2 comments
Closed

After migrating to Yarn 2, Webpack wants to install a CLI #2302

o-alquimista opened this issue Mar 2, 2020 · 2 comments

Comments

@o-alquimista
Copy link

Bug description

After installing Yarn 2 as instructed here, and running a Webpack Encore (Symfony) script, Webpack now asks for a CLI. It never did before.

Command

This will build the assets and move them into the public/ directory with Webpack Encore:

yarn encore dev

What is the current behavior?

Webpack is asking me to install webpack-cli. I simply answered 'no'. I don't want to mess things up. For now I'll stick with Yarn 1.

What is the expected behavior?

yarn encore dev should execute successfully, as it still does with Yarn 1.

Steps to Reproduce

  1. I have upgraded my project to Yarn 2 as instructed.
  2. Then I ran yarn install, which completed successfully; followed by yarn up, which finished immediately without any output.
  3. Finally, I ran yarn encore dev.

Environment

  • Node Version: v13.9.0
  • Yarn v1 Version: 1.22.0
  • Yarn v2 Version: 2.0.0-rc.29
  • OS and version: Ubuntu 19.10 Eoan x86_64
  • Symfony 4.4 LTS project (all dependencies up-to-date)
@merceyz merceyz transferred this issue from yarnpkg/yarn Jan 2, 2021
@arcanis
Copy link
Member

arcanis commented Jan 2, 2021

This is expected. The Webpack CLI is in webpack-cli, not in webpack.

@arcanis arcanis closed this as completed Jan 2, 2021
@merceyz
Copy link
Member

merceyz commented Jan 2, 2021

Based on the date this was opened it was because of a missing peer dependency fixed in webpack/webpack#11190

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

3 participants