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

Tether Error: Both element and target must be defined #27

Closed
slorber opened this issue Dec 15, 2014 · 2 comments
Closed

Tether Error: Both element and target must be defined #27

slorber opened this issue Dec 15, 2014 · 2 comments

Comments

@slorber
Copy link

slorber commented Dec 15, 2014

I'm using Browserify with TetherTooltip.
require("tether-tooltip/tooltip"); works fine to get the code.

However, Tether gives me the error Tether Error: Both element and target must be defined

Versions are:

/*! tether-tooltip 0.2.6 */
/*! tether 0.6.5 */

Notice that I have this error even with the code sample

new Tooltip({
  target: targetElement,
  position: 'top left',
  content: "My awesome <b>content</b>.",
  classes: 'my-tether-theme'
});

I see in my debugger the call to setOptions with the attributes

options: Object
  classes: "my-tether-theme"
  content: "My awesome <b>content</b>."
  position: "top left"
  target: div.space-overview-shared-with-count

So is it a bug? At least I don't understand what I am supposed to pass as element

@slorber
Copy link
Author

slorber commented Dec 16, 2014

Actually it's not a bug with Tether or Tooltip, it's a problem when using the NPM package with browserify.

@Steve-Mc
Copy link

Any fix for this?

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

2 participants