Ecommerce Shopify WordPress Discussion

Installing mmenu in WordPress via npm error

I've been trying to install the mmenu.js package (not a WP plugin) on Wordpress. My site is already setup for npm so I've downloaded the package and updated my package.json and gulpfile and everything is compiling nicely into assets/styles/styles.css and assets/scripts/scripts.js and these are properly wp_enqueue_script-ed. I'm using a simple test page without the header and footer includes, just the wp_head() and wp_footer() functions to provide the scripts and stylesheets. Everything appears to be working correctly with the installation except I get a single error in the console: Uncaught TypeError: o is not a function at e.backButton (mmenu.js:2:27071) at e.value (mmenu.js:2:6157) at new e (mmenu.js:2:3093) at HTMLDocument.<anonymous> (mmenu-test/:228:34) At least the error message shows that mmenu is firing and the script is being read, which is a start. I just hope someone else out there has been through this and understands the problem and how to fix it. Thanks, Len
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.