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):
rename move package.json, yarn.lock and node_modules
composer remove symfony/webpack-encore-bundle
composer req symfony/webpack-encore-bundle
Check new package.json and adjust original package.json
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:
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):
package.json
,yarn.lock
andnode_modules
composer remove symfony/webpack-encore-bundle
composer req symfony/webpack-encore-bundle
package.json
and adjust originalpackage.json
package.json
by old oneyarn install
This was a similar issue.