Closed (fixed)
Project:
Drupal core
Version:
9.4.x-dev
Component:
javascript
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jun 2022 at 19:37 UTC
Updated:
9 Dec 2022 at 15:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jsutta commentedAdding patch to rename the file.
Comment #3
cilefen commentedIt looks like this was reported on the upgrade issue
Comment #8
nod_Moving things here instead, porting issue credit as well.
Comment #9
nod_Comment #10
longwaveThe upgrade itself was done in #3266912: Review version constraints for production yarn dependencies but this task remains from the duplicate. The file is renamed correctly to match the change in
sourceMappingURLbetween Backbone 1.4.0 and 1.4.1, so this is RTBC.Comment #11
jsutta commentedThank you @nod_ and @longwave! +1 to #8.
Comment #16
lauriiiCommitted #9 12a74da and pushed to 10.1.x and cherry-picked to 10.0.x. Committed #8 77c7281 and pushed to 9.5.x and cherry-picked to 9.4.x. Thanks!
Comment #17
alina.basarabeanu commentedPatch #9 applied on Drupal Version 9.4.1 and fix the issue.
Comment #19
leisurman commentedPatch #2 applies without an error but does not rename the file backbone-min.map to backbone-min.js.map for me after running composer install? I am using Drupal 9.3.22. The web-root is in web/. My environment is Virtualbox/Redhat
Comment #20
leisurman commentedI tried Patch #8 on Drupal 9.3.22. Composer said, Could not apply patch. But the file is renamed from backbone-min.map to backbone-min.js.map. Is it safe to leave this patch in as it does work and we are upgrading to Drupal 9.4 in the next few weeks?
Comment #21
jsutta commented@leisurman, I would suggest renaming your core folder to something like core.old, then running composer install. This will reinstall Drupal Core, which should fix the issue you're seeing. After running composer install, verify that the files are correct and, if they are, delete the core.old folder.
Note: Hopefully this isn't the case as it's not best practice, but if you have any customizations applied directly to anything in the core folder, then you'll need to make sure to reapply them before deleting the core.old folder.
Hope this helps!
Comment #22
leisurman commented@jsutta, Thank you. I will try this soon.
Comment #23
leisurman commentedWe upgrade to Drupal 9.4.8. I looked inside /core/assets/vendor/backbone/
And I see the correct named file - backbone-min.js.map. There wasn't a need to use patch #8