magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.55k stars 9.32k forks source link

Missing jquery.mobile.custom.js in 2.4.4 #35864

Closed mohitnavik closed 2 years ago

mohitnavik commented 2 years ago

Preconditions and environment

I have upgraded Magento from 2.4.3-p2 to 2.4.4. After upgrading the magento version, I am getting "Uncaught Error: Script error for jquery/jquery.mobile.custom" error in the console.

image

I have custom theme and added the following in requirejs-config.js

_var config = { map: { '*': { 'rowBuilder': 'Magento_Theme/js/row-builder', 'toggleAdvanced': 'mage/toggle' } }, paths: { 'jquery/ui': 'jquery/jquery-ui', 'countdown': "js/countdown.min" }, shim: { 'countdown': { 'deps': ['jquery'] } }, deps: [ 'jquery/jquery.mobile.custom', 'mage/common', 'mage/dataPost', 'mage/bootstrap' ], config: { mixins: { 'Magento_Theme/js/view/breadcrumbs': { 'Magento_Theme/js/view/add-home-breadcrumb': true }, 'Magento_Ui/js/modal/modal': { 'MagentoUi/js/model/modal-mixin': true } } } };

I have checked and found that "lib/web/jquery/jquery.mobile.custom.js" is missing.

Steps to reproduce

  1. Upgrade from 2.4.3-p2 to 2.4.4
  2. Add custom code in requirejs-config.js as per shared.
  3. Go to frontend(any page) and check browser console.

Expected result

Error should not be show in console or alternate way to fix it

Actual result

Error in console: Uncaught Error: Script error for jquery/jquery.mobile.custom

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 2 years ago

Hi @mohitnavik. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:

Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, review the Magento Contributor Assistant documentation.

Add a comment to assign the issue: @magento I am working on this

To learn more about issue processing workflow, refer to the Code Contributions.


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues 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.

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

m2-assistant[bot] commented 2 years ago

Hi @engcom-Lima. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Lima commented 2 years ago

Hi @mohitnavik ,

I have tried to reproduce the issue but issue is not reproducible to me on 2.4.4 which was upgraded from 2.4.3-p2. Please refer below screenshot for your reference:

image

Followed all the steps which you have provided in the issue . Please provide information on which path you have saved requirejs-config.js file.

Thanks

mohitnavik commented 2 years ago

Hi @engcom-Lima,

Thanks for your response

Is "jquery.mobile.custom.js" file in the 2.4.4?

Did you try with new custom theme?

Thanks,

engcom-Lima commented 2 years ago

Hi @mohitnavik ,

Yes I have created custom theme as you can see my screeshot in above comment. I have checked there is no jquery.mobile.custom.js file in 2.4.4 version. Can you please test it in the latest 2.4-develop if you are facing any issue let us know.

Thanks

engcom-Lima commented 2 years ago

Hi @mohitnavik ,

We have noticed that this issue has not been updated for a period of 14 Days. Hence we assume that this issue is fixed now, so we are closing it.Please raise a fresh ticket or reopen this ticket if you need more assistance on this.

Thanks

Vitaliy-Lazarev commented 2 years ago

Hi everyone. I meet the same problem. "2.4.5-p1" has the same issue. The jquery.mobile.custom.js file doesn't exist.

technodelight commented 1 year ago

This is still reproducible on 2.4.4-p2 as well

ciancastillo commented 1 year ago

Facing the same issue in 2.4.5-p1

ponaravind-prevaj commented 1 year ago

Im also facing the same issue in magento open source 2.4.5

vahir2016 commented 1 year ago

I have the same issue but I had a guess.

The file had been removed from magento 2.4.4 (check this https://magento.stackexchange.com/questions/355000/jquery-mobile-custom-js-file-error-after-upgrade-to-magento-2-4-4).

But if you are upgrading from an old magento the file is still located in lib/web/jquery/jquery.mobile.custom.js so it will works until you will remove the file.

In my case I had to remove the file and also remove the reference from src/app/design/frontend/XXX/YYY/web/mage/menu.js to the file in the define.