{"id":2604,"date":"2024-12-31T20:23:15","date_gmt":"2024-12-31T20:23:15","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/solved-admin-menu-not-working-after-upgrading-to-magento-2-4-4\/"},"modified":"2025-07-16T14:53:00","modified_gmt":"2025-07-16T09:23:00","slug":"solved-admin-menu-not-working-after-upgrading-to-magento-2-4-4","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/solved-admin-menu-not-working-after-upgrading-to-magento-2-4-4\/","title":{"rendered":"Solved: Admin Menu Not Working After Upgrading to Magento 2.4.4"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Is your Magento 2&nbsp;<em><strong>admin menu not working after upgrading to Magento 2.4.4<\/strong><\/em>? If yes, then here is the solution!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/meetanshi.com\/blog\/magento-2-4-4-release\/\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2.4.4<\/a>\u00a0was released by Adobe on April 12, 2022, with plenty of system improvements, bug fixes, and new features. The latest version of\u00a0Magento 2\u00a0is faster, better, and more secure than the older versions. However, some store owners complain that their Magento 2 admin menu not working after upgrading to Magento 2.4.4. The issue is produced when the\u00a0<a href=\"https:\/\/meetanshi.com\/blog\/exclude-custom-module-js-from-minification-of-js-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">JS bundling and script modification<\/a>\u00a0are enabled. The console displays the following error:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em><strong>Uncaught SyntaxError: Unexpected token \u2018const\u2019<\/strong><\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2022\/07\/Uncaught-SyntaxError-Unexpected-token-const-after-upgrading-to-Magento-244-e1656400602252-2048x420-1.png\" alt=\"Uncaught SyntaxError Unexpected token const after upgrading to Magento 2.4.4\" class=\"wp-image-50724\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you are also facing the same issue and your admin panel menu is not working after upgrading to Magento 2.4.4, this blog post is for you.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this post, I will provide the steps to solve the&nbsp;<em><strong>Uncaught SyntaxError: Unexpected token \u2018const\u2019 error in Magento 2.4.4<\/strong><\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s begin!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to Solve \u2018Unexpected Token const\u2019 Error in Magento 2.4.4<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To solve the unexpected token \u2018const\u2019 error in Magento 2.4.4, carefully follow the steps mentioned below:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1:&nbsp;<\/strong>Go to&nbsp;<em><strong>lib\/web\/jquery\/bootstrap\/&nbsp;<\/strong><\/em>path and open the&nbsp;<strong>collapse.js&nbsp;<\/strong>file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2:<\/strong>&nbsp;Make changes in the file as shown in the screenshot below, or replace it with this&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/collapse.js\" target=\"_blank\" rel=\"noreferrer noopener\">collapse.js file<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2022\/07\/Change-Collapse.js-File.png\" alt=\"Change Collapse.js File\" class=\"wp-image-50728\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3:&nbsp;<\/strong>Now, open&nbsp;<strong>tab.js&nbsp;<\/strong>file at&nbsp;<em><strong>lib\/web\/jquery\/bootstrap\/<\/strong>.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 4:&nbsp;<\/strong>Make changes in the file shown in the screenshot below, or download this&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/tab.js\" target=\"_blank\" rel=\"noreferrer noopener\">tab.js file<\/a>&nbsp;and replace it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2022\/07\/Change-Tab.js-File.png\" alt=\"Change Tab.js File\" class=\"wp-image-50730\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it! Now, you can use the Magento 2 admin panel menu even if the JS bundling and script modification are enabled.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Similarly, many store owners also reported Magento admin login issues. In case you are facing any such error you can refer to this solution:&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/admin-login-not-working-after-upgrading-to-magento-2-4-4\/\" target=\"_blank\" rel=\"noreferrer noopener\">Admin Login Issue After Upgrading to Magento 2.4.4<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The&nbsp;<em><strong>Magento 2 unexpected token const<\/strong><\/em>&nbsp;is a common error that the admins face after upgrading to Magento 2.4.4. If your&nbsp;<em><strong>admin menu not working after upgrading to Magento 2.4.4<\/strong><\/em>, you can use this tutorial to solve it. I hope this solution will help you solve the Magento 2 admin menu not working issue. You can also&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/solved-magento-2-navigation-menu-not-showing\/\">solve navigation menu not showing in Magento 2<\/a>&nbsp;error, as top navigation menu makes it easy for visitors to navigate through the Magento 2 store.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also, do not forget to share this Magento 2 solution with your developer friends via social media.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks for reading!  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Similar Posts:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/meetanshi.com\/blog\/uncaught-error-call-to-a-member-function-getsectionnames\/\" target=\"_blank\" rel=\"noreferrer noopener\">Fatal Error: Uncaught Error: Call to a Member Function getSectionNames() After Upgrading Magento 2<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/meetanshi.com\/blog\/default-magento-logo-displayed-after-upgrading-to-magento-2-4-3\/\" target=\"_blank\" rel=\"noreferrer noopener\">Fixed: Default Magento Logo Displayed After Upgrading to Magento 2.4.3<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/meetanshi.com\/blog\/default-magento-logo-displayed-after-upgrading-to-magento-2-4-3\/\" target=\"_blank\" rel=\"noreferrer noopener\">Fixed: Default Magento Logo Displayed After Upgrading to Magento 2.4.3<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/meetanshi.com\/blog\/solved-argument-passed-must-be-array-null-given-in-magento-2-admin-grid\/\" target=\"_blank\" rel=\"noreferrer noopener\">Solved: Argument Passed Must Be Array, Null Given Error in Magento 2 Admin Grid<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Is your Magento 2&nbsp;admin menu not working after upgrading to Magento 2.4.4? If yes, then here is the solution! Magento 2.4.4\u00a0was released by Adobe on&#8230;<\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-2604","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=2604"}],"version-history":[{"count":4,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2604\/revisions"}],"predecessor-version":[{"id":17947,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2604\/revisions\/17947"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=2604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=2604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=2604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}