-
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
JS files located outside the web/js directory #16302
Comments
Hi @BenSpace48. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where |
@BenSpace48, thank you for your report. |
Hi @BenSpace48 Do you need below files in
|
Yeah for consistency with the dev docs and other files, and general best practices. I think there are more files than the ones I've listed, they were just the first few I discovered whilst looking into it. |
Ok Thanks @BenSpace48 I am working on this PR |
Hi @BenSpace48. Thank you for your report.
The fix will be available with the upcoming 2.2.7 release. |
@magento-engcom-team give me 2.2.5 instance |
Hi @BenSpace48. Thank you for your request. I'm working on Magento 2.2.5 instance for you |
Hi @BenSpace48, here is your Magento instance. |
Hi @BenSpace48. Thank you for your report.
The fix will be available with the upcoming 2.3.0 release. |
To be introduced in 2.3.x and 2.2.7 With expected BC break in 2.2.x because magento/magento2#16582 does not seem to cover this particular case See issue of origin magento/magento2#16302
Hi @BenSpace48. Thank you for your report. The fix will be available with the upcoming 2.3.1 release. |
Summary
Some JS files are direct children of
web
rather thanweb/js
. This does not follow instructions from the dev docs thus is confusing.There are more instances of this:
vendor/magento/module-payment/view/frontend/web/transparent.js
vendor/magento/module-payment/view/frontend/web/cc-type.js
vendor/magento/module-search/view/frontend/web/form-mini.js
vendor/magento/module-sales/view/frontend/web/gift-message.js
There are more but I'm pushed for time at the minute.
Preconditions
Steps to reproduce
captcha.js
andonepage.js
is located.Expected result
web/js
as per the dev docs.Actual result
web
, this is inconsistent with the dev docs.This is confusing as the dev docs instructs developers to use certain locations yet the core does not follow this, either the files should be relocated to be inside
web/js
or the dev docs should be updated. Unless there is a valid reason why the files are outsideweb/js
?The text was updated successfully, but these errors were encountered: