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

Upgrade WebpackEncore version #6590

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

javiereguiluz
Copy link
Collaborator

Apparently, we still used the ancient 2.x version of WebpackEncore. Let's upgrade to the most recent version.

Upgrading just WebpackEncore showed a lot of "unmeet peer dependency" errors. That's why I added @babel/core, webpack, etc. to devDependencies. Let me ping @Kocal to see if he can quickly validate this or suggest a better alternative to fix those errors. Thanks a lot!

@javiereguiluz javiereguiluz added this to the 4.x milestone Nov 27, 2024
@Kocal
Copy link

Kocal commented Nov 28, 2024

Hey @javiereguiluz, FYI this has been introduced in https://github.com/symfony/webpack-encore/releases/tag/v4.0.0 for many reasons, adding those dependencies by yourself is perfect :)

@javiereguiluz javiereguiluz merged commit 2307da5 into EasyCorp:4.x Nov 29, 2024
2 of 5 checks passed
@Seb33300
Copy link
Contributor

Seb33300 commented Dec 1, 2024

@javiereguiluz I am a bit late but you can also take a look at the webpack recipes and compare with previous one:

It looks like some dependencies such as webpack-notifier are no longer required.

@Kocal
Copy link

Kocal commented Dec 1, 2024

Nothing to do here with webpack-notifier, the dependency was never required by Webpack Encore itself. It was only present in the recipe with .enableBuildNotifications() (that you are not forced to keep).

But as you can see, it is not present in EasyAdminBundle:

@javiereguiluz javiereguiluz deleted the upgrade_webpack_encore branch December 1, 2024 11:23
javiereguiluz added a commit that referenced this pull request Dec 7, 2024
This PR was squashed before being merged into the 4.x branch.

Discussion
----------

Update the Webpack Encore configuration

As commented by `@Seb33300` in #6590 (comment) we should have checked the latest recipe for Webpack Encore (https://github.com/symfony/recipes/blob/main/symfony/webpack-encore-bundle/2.0/package.json) when upgrading its configuration.

So, I just did that and added the missing packages.

#SymfonyHackday

Commits
-------

d901a91 Update the Webpack Encore configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants