symfony / webpack-encore-bundle

Symfony integration with Webpack Encore!
https://symfony.com/webpack-encore
MIT License
933 stars 83 forks source link

package.json not updated #228

Open fishbone1 opened 5 months ago

fishbone1 commented 5 months ago

It seems that the package.json is not updated when updating webpack-encore-bundle. If your point is that devs have to maintain the package.json theirselves and keep it in sync with webpack-encore-bundle, then the contents of it should be documented.

I got a cryptic error after updating an older Symfony project:

Error: Cannot find module '@babel/core'

Please consider that updating (ideally) happens more often than installation, so it is even more important. (I wonder why there often are only nice solutions for the latter. Do other people re-write their applications all the time? Or they don't update dependencies at all?)

I'm curious why you didn't define those dependenies (e.g. @babel/core) as sub-dependencies of webpack-encore? This is what I assumed initially, so it took me a while to figure out that something's wrong with my package.json.

Anyway, this is my update process at the moment (as a workaround):

This was a similar issue.