Skip to content
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

Using with Webpack #149

Open
sergiop opened this issue Sep 17, 2018 · 3 comments
Open

Using with Webpack #149

sergiop opened this issue Sep 17, 2018 · 3 comments

Comments

@sergiop
Copy link

sergiop commented Sep 17, 2018

I'm trying to use the plugin with Webpack, but i get:
jquery.js?eedf:3827 Uncaught TypeError: tabs.responsiveTabs is not a function

Any ideas?

import $ from 'jquery'
import 'responsive-tabs'

export const initTabs = () => {
  const tabs = $('[data-js="tabs"]')

  tabs.responsiveTabs({
    startCollapsed: 'accordion'
  })
}
@Electrofenster
Copy link

same here. Any Idea?

@LevGlushchenko
Copy link

Can anyone resolve this problem?

@pdrittenhouse
Copy link

Can the responsiveTabs function be exported as a node module.export?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants