-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Fix URL path of Sourcemap(.map) files #28415
Fix URL path of Sourcemap(.map) files #28415
Conversation
Hi @tshabatyn. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tshabatyn unfortunately it's really hard to understand what the issue you have, how to test it and not clear if your fix is correct.
Could you add some issue description and how you're going to fix it?
@tshabatyn I am closing this PR now due to inactivity. |
Hi @tshabatyn, thank you for your contribution! |
Hey @ihor-sviziev! Steps to reproduce:
Which are incorrect paths to the sourcemap files, the browser tries to load these incorrectly resulting in 404 errors and doesn't find the original less files in the inspector:
Also, the sourcemap files are now loaded in the browser and the inspector finds the less files where the code originally came from: Thanks for this fix @tshabatyn! |
Hi @tshabatyn. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review. For more details, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Hello, @ihor-sviziev - I'm going through some of the oldest open pull requests on the Magento 2 repository to better understand why they are still open, if they ought to be closed, etc. On this one, I noticed that it's marked as changes requested and links back to a comment you made in 2020 - #28415 (review) At least to my admittedly untrained eye, @hostep's comment in #28415 (comment) seems like it clarifies what @tshabatyn was solving in this pull request. Is there additional info still needed, and if so, what might it be? Thanks for helping me understand this! Through my position at the Magento Association, I'm on a crusade to get more community innovations merged smoothly into the Magento codebase and understanding these oldest pull requests can really help me determine the best way to apply our efforts. |
@magento create issue |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run Integration Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Description (*)
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Verified the problem and fix on Magento 2.4.5-p1 and 2.4-develop. The problem doesn't exist on Magento 2.3.7-p4 so probably one of the recent changes in 2.4.x to the grunt code or one of the updated npm packages causes the problem.
Steps to reproduce:
package.json.sample
topackage.json
npm install
cp Gruntfile.js.sample Gruntfile.js
grunt exec:luma
grunt less:luma
grep -r 'sourceMappingURL' pub/static
and notice this output:Which are incorrect paths to the sourcemap files, the browser tries to load these incorrectly resulting in 404 errors and doesn't find the original less files in the inspector:
Questions or comments
Contribution checklist (*)
Resolved issues: