You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I switch my git branches like a brisk bird. I work on a feature, then check out a remote change and then switch back to the master.
Since we got Webpacker in Rails, my life became less comfortable: while switching branches works well with Ruby gems (because you can have multiple versions installed and dependency resolution is fast), it doesn't with node packages. I encounter the following message way too often when running rails s:
========================================
Your Yarn packages are out of date!
Please run `yarn install --check-files` to update.
========================================
Rails should not annoy me because of Webpacker. Can we do something about that?
A naive idea would be to make separate node_modules folders for each yarn.lock.
Are there any other (more feasible) ideas?
The text was updated successfully, but these errors were encountered:
I think this is one of the places that Yarn 2 (specifically PnP #2112) would be very beneficial. It would remove the need for a node_modules folder and module resolution would happen on the fly so re-installs should not be necessary.
while switching branches works well with Ruby gems (because you can have multiple versions installed and dependency resolution is fast), it doesn't with node packages.
Do you have your yarn.lock file under version control?
I switch my git branches like a brisk bird. I work on a feature, then check out a remote change and then switch back to the master.
Since we got Webpacker in Rails, my life became less comfortable: while switching branches works well with Ruby gems (because you can have multiple versions installed and dependency resolution is fast), it doesn't with node packages. I encounter the following message way too often when running
rails s
:#1135 makes it even worse.
Rails should not annoy me because of Webpacker. Can we do something about that?
A naive idea would be to make separate
node_modules
folders for eachyarn.lock
.Are there any other (more feasible) ideas?
The text was updated successfully, but these errors were encountered: