Skip to Content
Home › Forums › Latest release › 1.1.x › Import in webpack
How to import in Webpack
import smartmenus from ‘smartmenus’ not working
Hi, you need both jquery and smartmenus added to your dependencies in “package.json” – e.g.:
and then in your app’s JS the following should work:
import $ from 'jquery';
The smartmenus module exports jQuery itself so you could even do something like this (without importing jquery separately):
import $ from 'smartmenus';
You will be emailed a link to set your password.
Username or Email Address
You will receive emails only on new version releases or really important news. Your email will not be shared with anyone. We hate spam too!