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
Magento 2.4.4 admin panel - Uncaught SyntaxError: Unexpected token 'const' #35325
Comments
Hi @sanchit-redmonks. Thank you for your report.
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:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 You can find the schedule on the Magento Community Calendar page. 📞 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. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Hi @engcom-November. Thank you for working on this issue.
|
Verified the issue on Magento 2.4.4 version and 2.4-develop branch as well and the issue is reproducible on both the versions |
✅ Jira issue https://jira.corp.magento.com/browse/AC-2880 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-November. Thank you for verifying the issue. |
Here is the solution:-
@@ -45,17 +45,17 @@ define([
@@ -204,10 +204,10 @@ define([
@@ -222,7 +222,7 @@ define([
and lib/web/jquery/bootstrap/tab.js @@ -28,14 +28,14 @@ define([
Direct link: |
Yes, this solution works! Thanks! |
Is someone working on a PR to fix this? |
Magento have provided me with the following patch for this: https://gist.github.com/ssx/275bc6c9674277ed8d26592235f1cc6b |
This is still present in 2.4.4-p2 |
Hi. Also facing this issue in 2.4.4-p2 |
same |
Issue still present on 2.4.4-p3 |
Summary (*)
Magento 2.4.4 running on PHP 8.1 in Production mode
If you enable the js bundling and minify the scripts.
php bin/magento config:set dev/js/minify_files 1
php bin/magento config:set dev/js/enable_js_bundling 1
After running the deployment and logging into the admin panel. We can't click on any menue option. There is an error in the browser console: Uncaught SyntaxError: Unexpected token 'const'
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
We should be able to access admin panel without any error.
Actual result (*)
We are getting the following error and not able to click on any menu option:
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: