Opened 2 years ago
Last modified 21 months ago
#61876 new defect (bug)
Exception thrown in navigation/view.min.js on mobile device
| Reported by: | derroth | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Menus | Version: | 6.6.1 |
| Severity: | normal | Keywords: | navigation mobile |
| Cc: | Focuses: |
Description
After the update to 6.6.1 the menu isn't shown anymore on mobile devices.
Remote debugger shows:
Uncaught SyntaxError: Cannot use import statement outside a module
Opening the file in the remote console the following line is marked as faulty:
// source --> https://toebele-rechberghausen.de/wp-includes/blocks/navigation/view.min.js?ver=6.6.1 import*as e from "@wordpress/interactivity";
Change History (2)
#2
@
23 months ago
I've tested letting WP Fastest Cache do all the optimisations with the following:
<?php define( 'CONCATENATE_SCRIPTS', false ); define( 'SCRIPT_DEBUG', true );
Same problem.
When I exclude view.min.js from being minified & combined, everything seems to work for me. @derroth Are you using page optimizaion or just plain WordPress?
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
+1 - this problem manifests when the file is combined with other scripts, possibly in combination with deferring of render blocking code (using WP Fastest Cache in my case).
Could this be because
import * asis minified intoimport*as?