symfony / webpack-encore

A simple but powerful API for processing & compiling assets built around Webpack
https://symfony.com/doc/current/frontend.html
MIT License
2.23k stars 198 forks source link

Yarn upgrade : version no longer supported #1288

Closed keichitokuna closed 3 months ago

keichitokuna commented 3 months ago

Hello,

I work on a Symfony 7.0 project. I did all the upgrades to Symfony 7.1, including recipes.

Then I updated composer with no issue but when i try to upgrade yarn, i have this :

keichi@DSN-EDAM ~/app-proj-num  master ±  yarn upgrade
yarn upgrade v1.22.22
[1/4] 🔍  Resolving packages...
warning @symfony/webpack-encore > webpack-dev-server > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
warning @symfony/webpack-encore > clean-webpack-plugin > del > rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
warning @symfony/webpack-encore > webpack-dev-server > rimraf > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning @symfony/webpack-encore > clean-webpack-plugin > del > rimraf > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning @symfony/webpack-encore > webpack-dev-server > webpack-dev-middleware > memfs@3.6.0: this will be v4
warning @symfony/webpack-encore > clean-webpack-plugin > del > globby > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning @symfony/webpack-encore > webpack-dev-server > rimraf > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Rebuilding all packages...
success Saved lockfile.
success Saved 513 new dependencies.

I am unsure, how to resolve it properly ?

Here the full log from the beginning: full logs - yarn upgrade issue.txt

Thanks,

K.

stof commented 3 months ago

the first question is whether webpack-dev-server and clean-webpack-plugin have newer versions available that don't use those old versions. the next step depends on the answer:

Note however that these are just warnings. Older versions of the package still work even though they are not maintained anymore.

keichitokuna commented 3 months ago

Hello stof,

Thanks for the quick reply. I know that it is just warnings, but i try to understand it and cleared it along the way.

As my understanding :

I checked @symfony/webpack-encore which seems to have these two plugins as dependencies. The current version is 4.6.0 (here), but in my yarn.lock, i only have the 4.0.0. And :

yarn upgrade @symfony/webpack-encore

has no effect.

Thanks again,

K.

stof commented 3 months ago

@keichitokuna you cannot just add a newer version of webpack-dev-server in your project. As I said, it needs to be upgraded in webpack-encore (and then a release being published).

stof commented 3 months ago

I created #1289 and #1290 to resolve those 2 cases in the next version of webpack-encore. So I'm closing this issue for now.